ComputeShaderKernel
Inherits: Resource
Description
A single entry-point of a ComputeShaderFile. Contains both the compiled SPIR-V associated with the kernel, and reflection metadata related to this particular kernel within a shader.
Properties
|
|
|
|
|
|
|
|
|
|
||
|
|
|
|
|
|
|
|
Property Descriptions
StringName kernel_name = &"" 🔗
void set_kernel_name(value:
StringName)StringNameget_kernel_name()
The name of this kernel. By default, this will match the entry-point function name declared in the shader.
StructTypeLayoutShape parameters 🔗
void set_parameters(value: StructTypeLayoutShape)
StructTypeLayoutShape get_parameters()
Get the reflection information of the parameters for this kernel. You typically won't need to access this, but it is used under the hood by ComputeShaderTask to bind data to the correct descriptor slots.
int slot_offset = 0 🔗
void set_slot_offset(value:
int)intget_slot_offset()
The slot offset of this kernel's parameters, relative to the global parameters.
int space_offset = 0 🔗
void set_space_offset(value:
int)intget_space_offset()
The space offset of this kernel's parameters, relative to the global parameters.
RDShaderSPIRV spirv 🔗
void set_spirv(value:
RDShaderSPIRV)RDShaderSPIRVget_spirv()
The SPIR-V intermediate representation of this kernel.
Vector3i thread_group_size = Vector3i(0, 0, 0) 🔗
void set_thread_group_size(value:
Vector3i)Vector3iget_thread_group_size()
The thread group size declared for this kernel.
Dictionary used_binding_sets = {} 🔗
void set_used_binding_sets(value:
Dictionary)Dictionaryget_used_binding_sets()
The binding sets that are used by this kernel. The key is the binding set index, and the value is true/false.
Dictionary user_attributes = {} 🔗
void set_user_attributes(value:
Dictionary)Dictionaryget_user_attributes()
Reflection information about any declared attributes on the entry-point function.