mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-21 06:14:10 +00:00
We need safeGetBufferAddress in clSetKernelArg for local buffer sizes.
This commit is contained in:
parent
af0ed1d1c4
commit
307d39cc04
1 changed files with 1 additions and 8 deletions
|
|
@ -976,6 +976,7 @@ public interface CL10 {
|
|||
@cl_int
|
||||
int clReleaseKernel(@PointerWrapper("cl_kernel") CLKernel kernel);
|
||||
|
||||
@GenerateAutos
|
||||
@cl_int
|
||||
int clSetKernelArg(@PointerWrapper("cl_kernel") CLKernel kernel,
|
||||
@cl_uint int arg_index,
|
||||
|
|
@ -996,14 +997,6 @@ public interface CL10 {
|
|||
@Check(canBeNull = true) @Const
|
||||
@Constant(value = "APIUtil.getBufferPointer().put(0, arg_value == null ? 0 : arg_value.getPointer()).getBuffer(), 0", keepParam = true) CLObject arg_value);
|
||||
|
||||
/** Sets the size of a __local kernel argument at the specified index. */
|
||||
@Alternate("clSetKernelArg")
|
||||
@cl_int
|
||||
int clSetKernelArg2(@PointerWrapper("cl_kernel") CLKernel kernel,
|
||||
@cl_uint int arg_index,
|
||||
@size_t long arg_size,
|
||||
@Constant("null, 0") Buffer arg_value);
|
||||
|
||||
// This is used by CLKernelUtil. Assumes arg_value.position() == 0.
|
||||
|
||||
@Alternate("clSetKernelArg")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue