Class KHRILProgram

java.lang.Object
org.lwjgl.opencl.KHRILProgram

public class KHRILProgram extends Object
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 Details

  • Method Details

    • nclCreateProgramWithILKHR

      public static long nclCreateProgramWithILKHR(long context, long il, long length, long errcode_ret)
      Unsafe version of: CreateProgramWithILKHR
      Parameters:
      length - the length of the block of memory pointed to by il
    • clCreateProgramWithILKHR

      public static long clCreateProgramWithILKHR(long context, ByteBuffer il, @Nullable IntBuffer errcode_ret)
      Creates a new program object for context using the length bytes of intermediate language pointed to by il.
      Parameters:
      context - must be a valid OpenCL context
      il - a pointer to a length-byte block of memory containing intermediate language
      errcode_ret - will return an appropriate error code. If errcode_ret is NULL, no error code is returned.
    • clCreateProgramWithILKHR

      public static long clCreateProgramWithILKHR(long context, ByteBuffer il, int @Nullable [] errcode_ret)
      Array version of: CreateProgramWithILKHR