TSdlGpuComputePipelineCreateInfo
A record specifying the parameters of a compute pipeline state.
Definition
Unit: Neslib.Sdl3.Gpu
See Also
Remarks
This struct is available since SDL 3.2.0.
Properties
Name | Description |
---|---|
Code | The compute shader code. |
EntryPoint | The entry point function name for the shader. |
Format | The format of the compute shader code. |
NumReadonlyStorageBuffers | The number of readonly storage buffers defined in the shader. |
NumReadonlyStorageTextures | The number of readonly storage textures defined in the shader. |
NumReadWriteStorageBuffers | The number of read-write storage buffers defined in the shader. |
NumReadWriteStorageTextures | The number of read-write storage textures defined in the shader. |
NumSamplers | The number of samplers defined in the shader. |
NumUniformBuffers | The number of uniform buffers defined in the shader. |
Props | A properties ID for extensions. Should be nil if no extensions are needed. |
ThreadCountX | The number of threads in the X dimension. This should match the value in the shader. |
ThreadCountY | The number of threads in the Y dimension. This should match the value in the shader. |
ThreadCountZ | The number of threads in the Z dimension. This should match the value in the shader. |
Methods
Name | Description |
---|---|
Create | Create with default values. |
Init | Init with default values. |
Property Descriptions
Code
The compute shader code.
property Code: TBytes read FCode write SetCode
Type: TBytes
EntryPoint
The entry point function name for the shader.
property EntryPoint: String read GetEntryPoint write SetEntryPoint
Type: String
Format
The format of the compute shader code.
property Format: TSdlGpuShaderFormat read GetFormat write SetFormat
Type: TSdlGpuShaderFormat
NumReadonlyStorageBuffers
The number of readonly storage buffers defined in the shader.
property NumReadonlyStorageBuffers: Integer read FHandle.num_readonly_storage_buffers write FHandle.num_readonly_storage_buffers
Type: Integer
NumReadonlyStorageTextures
The number of readonly storage textures defined in the shader.
property NumReadonlyStorageTextures: Integer read FHandle.num_readonly_storage_textures write FHandle.num_readonly_storage_textures
Type: Integer
NumReadWriteStorageBuffers
The number of read-write storage buffers defined in the shader.
property NumReadWriteStorageBuffers: Integer read FHandle.num_readwrite_storage_buffers write FHandle.num_readwrite_storage_buffers
Type: Integer
NumReadWriteStorageTextures
The number of read-write storage textures defined in the shader.
property NumReadWriteStorageTextures: Integer read FHandle.num_readwrite_storage_textures write FHandle.num_readwrite_storage_textures
Type: Integer
NumSamplers
The number of samplers defined in the shader.
property NumSamplers: Integer read FHandle.num_samplers write FHandle.num_samplers
Type: Integer
NumUniformBuffers
The number of uniform buffers defined in the shader.
property NumUniformBuffers: Integer read FHandle.num_uniform_buffers write FHandle.num_uniform_buffers
Type: Integer
Props
A properties ID for extensions. Should be nil if no extensions are needed.
property Props: TSdlProperties read GetProps write SetProps
Type: TSdlProperties
ThreadCountX
The number of threads in the X dimension. This should match the value in the shader.
property ThreadCountX: Integer read FHandle.threadcount_x write FHandle.threadcount_x
Type: Integer
ThreadCountY
The number of threads in the Y dimension. This should match the value in the shader.
property ThreadCountY: Integer read FHandle.threadcount_y write FHandle.threadcount_y
Type: Integer
ThreadCountZ
The number of threads in the Z dimension. This should match the value in the shader.
property ThreadCountZ: Integer read FHandle.threadcount_z write FHandle.threadcount_z
Type: Integer
Method Descriptions
Create
Create with default values.
class function Create: TSdlGpuComputePipelineCreateInfo; inline; static
Returns
TSdlGpuComputePipelineCreateInfo
Init
Init with default values.
procedure Init; inline