Top Description Constructors Methods
org.lwjgl.opencl

public Class pocl_content_size

extends Object
Class Inheritance
Imports
org.lwjgl.system.*

Native 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.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static int
clSetContentSizeBufferPoCL(long
a valid cl_mem object of MEM_OBJECT_BUFFER type.
buffer
,
long
a valid cl_mem object of MEM_OBJECT_BUFFER type. content_size_buffer must be at least 64bits large. The meaningful byte count is stored as 64bit unsigned integer, little endian.
content_size_buffer
)

Used to indicate that the buffer content_size_buffer will hold the meaningful byte count of the content of buffer buffer.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

pocl_content_sizeback to summary
protected pocl_content_size()

Method Detail

clSetContentSizeBufferPoCLback to summary
public static int clSetContentSizeBufferPoCL(long buffer, long content_size_buffer)

Used to indicate that the buffer content_size_buffer will 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:long

a valid cl_mem object of MEM_OBJECT_BUFFER type.

content_size_buffer:long

a valid cl_mem object of MEM_OBJECT_BUFFER type. content_size_buffer must be at least 64bits large. The meaningful byte count is stored as 64bit unsigned integer, little endian.

Annotations
@NativeType:cl_int