Skip to content

Commit

Permalink
Make cl_image_desc manual, add missing field, regenerate OpenCL
Browse files Browse the repository at this point in the history
  • Loading branch information
Perksey committed Nov 8, 2023
1 parent 211a7e8 commit ae1a14a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion generator.json
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,9 @@
"CL_PRINTF_CALLBACK_ARM": "CL_CONTEXT_PRINTF_CALLBACK_ARM",
"CL_PRINTF_BUFFERSIZE_ARM": "CL_CONTEXT_PRINTF_BUFFERSIZE_ARM"
},
"exclude": [
"cl_image_desc"
],
"bakery": {
"profileNames": [
"opencl"
Expand Down Expand Up @@ -345,7 +348,8 @@
"CL_CALLBACK_SetProgramReleaseCallback_pfn_notify*": "ObjectNotifyCallback",
"CL_CALLBACK_SetEventCallback_pfn_notify*": "EventNotifyCallback",
"CL_CALLBACK_EnqueueNativeKernel_user_func*": "UserFunction",
"CL_CALLBACK_BuildProgram_pfn_notify*": "ObjectNotifyCallback"
"CL_CALLBACK_BuildProgram_pfn_notify*": "ObjectNotifyCallback",
"cl_image_desc": "ImageDesc"
},
{
"$include.commonTypeMap": "build/csharp_typemap.json",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,10 @@ public ImageDesc
[NativeName("Type.Name", "cl_uint")]
[NativeName("Name", "num_samples")]
public uint NumSamples;
/// <summary></summary>
[NativeName("Type", "cl_mem")]
[NativeName("Type.Name", "cl_mem")]
[NativeName("Name", "mem_object")]
public nint MemObject;
}
}

0 comments on commit ae1a14a

Please sign in to comment.