Top Description Fields Constructors Methods
org.lwjgl.opencl

public Class KHRILProgram

extends Object
Class Inheritance
Imports
javax.annotation.*, java.nio.*, org.lwjgl.system.*

Native bindings to the khr_il_program extension.

This extension adds the ability to create programs with intermediate language (IL), usually SPIR-V. Further information about the format and contents of SPIR-V may be found in the SPIR-V Specification. Information about how SPIR-V modules behave in the OpenCL environment may be found in the OpenCL SPIR-V Environment Specification.

This functionality described by this extension is a core feature in OpenCL 2.1.

Field Summary

Modifier and TypeField and Description
public static final int
CL_DEVICE_IL_VERSION_KHR

Accepted as a new param_name argument to GetDeviceInfo.

public static final int
CL_PROGRAM_IL_KHR

Accepted as a new param_name argument to GetProgramInfo.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static long
clCreateProgramWithILKHR(long
must be a valid OpenCL context
context
,
ByteBuffer
a pointer to a length-byte block of memory containing intermediate language
il
,
IntBuffer
will return an appropriate error code. If errcode_ret is NULL, no error code is returned.
errcode_ret
)

Creates a new program object for context using the length bytes of intermediate language pointed to by il.

public static long
clCreateProgramWithILKHR(long context, ByteBuffer il, int[] errcode_ret)

Array version of: CreateProgramWithILKHR

public static long
nclCreateProgramWithILKHR(long context, long il, long
the length of the block of memory pointed to by il
length
,
long errcode_ret)

Unsafe version of: CreateProgramWithILKHR

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CL_DEVICE_IL_VERSION_KHRback to summary
public static final int CL_DEVICE_IL_VERSION_KHR

Accepted as a new param_name argument to GetDeviceInfo. (char[])

The intermediate languages that are be supported by CreateProgramWithILKHR for this device.

Returns a space separated list of IL version strings of the form:


<IL_Prefix>_<Major_version>.<Minor_version>

A device that supports the cl_khr_il_program extension must support the “SPIR-V” IL prefix.

CL_PROGRAM_IL_KHRback to summary
public static final int CL_PROGRAM_IL_KHR

Accepted as a new param_name argument to GetProgramInfo. (unsigned char[])

Returns the program IL for programs created with CreateProgramWithILKHR.

If program is created with CreateProgramWithSource, CreateProgramWithBinary, or CreateProgramWithBuiltInKernels, the memory pointed to by param_value will be unchanged and param_value_size_ret will be set to zero.

Constructor Detail

KHRILProgramback to summary
protected KHRILProgram()

Method Detail

clCreateProgramWithILKHRback to summary
public static long clCreateProgramWithILKHR(long context, ByteBuffer il, IntBuffer errcode_ret)

Creates a new program object for context using the length bytes of intermediate language pointed to by il.

Parameters
context:long

must be a valid OpenCL context

il:ByteBuffer

a pointer to a length-byte block of memory containing intermediate language

errcode_ret:IntBuffer

will return an appropriate error code. If errcode_ret is NULL, no error code is returned.

Annotations
@NativeType:cl_program
clCreateProgramWithILKHRback to summary
public static long clCreateProgramWithILKHR(long context, ByteBuffer il, int[] errcode_ret)

Array version of: CreateProgramWithILKHR

Annotations
@NativeType:cl_program
nclCreateProgramWithILKHRback to summary
public static long nclCreateProgramWithILKHR(long context, long il, long length, long errcode_ret)

Unsafe version of: CreateProgramWithILKHR

Parameters
length:long

the length of the block of memory pointed to by il