Package org.lwjgl.opencl
Class pocl_content_size
- java.lang.Object
-
- org.lwjgl.opencl.pocl_content_size
-
public class pocl_content_size extends java.lang.ObjectNative bindings to the pocl_content_size extension.This extension provides a way to to indicate a buffer which will hold the number of meaningful bytes in another buffer, after kernel execution.
The implementation can use this as an optimization hint, to internally optimize buffer transfers in scenarios with kernels producing dynamic data sizes, by not transferring the bytes that were not written to.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intclSetContentSizeBufferPoCL(long buffer, long content_size_buffer)Used to indicate that the buffercontent_size_bufferwill hold the meaningful byte count of the content of buffer buffer.
-
-
-
Method Detail
-
clSetContentSizeBufferPoCL
public static int clSetContentSizeBufferPoCL(long buffer, long content_size_buffer)Used to indicate that the buffercontent_size_bufferwill hold the meaningful byte count of the content of buffer buffer.The user is responsible for maintaining the correct meaningful byte count (the implementation does not update the
content_size_buffer).- Parameters:
buffer- a validcl_memobject ofMEM_OBJECT_BUFFERtype.content_size_buffer- a validcl_memobject ofMEM_OBJECT_BUFFERtype.content_size_buffermust be at least 64bits large. The meaningful byte count is stored as 64bit unsigned integer, little endian.
-
-