Skip to content

TSdlGpuShaderCreateInfo

A record specifying code and metadata for creating a shader object.

Definition

Unit: Neslib.Sdl3.Gpu

type TSdlGpuShaderCreateInfo = record ... end;

See Also

Properties

Name Description
Code The shader code.
EntryPoint The entry point function name for the shader.
Format The format of the shader code.
NumSamplers The number of samplers defined in the shader.
NumStorageBuffers The number of storage buffers defined in the shader.
NumStorageTextures The number of storage textures defined in the shader.
NumUniformBuffers The number of uniform buffers defined in the shader.
Props A properties ID for extensions. Should be 0 if no extensions are needed.
Stage The stage the shader program corresponds to.

Methods

Name Description
Create Create with default values.
Init Init with default values.

Property Descriptions

Code

The 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 shader code.

property Format: TSdlGpuShaderFormat read GetFormat write SetFormat

Type: TSdlGpuShaderFormat


NumSamplers

The number of samplers defined in the shader.

property NumSamplers: Integer read FHandle.num_samplers write FHandle.num_samplers

Type: Integer


NumStorageBuffers

The number of storage buffers defined in the shader.

property NumStorageBuffers: Integer read FHandle.num_storage_buffers write FHandle.num_storage_buffers

Type: Integer


NumStorageTextures

The number of storage textures defined in the shader.

property NumStorageTextures: Integer read FHandle.num_storage_textures write FHandle.num_storage_textures

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 0 if no extensions are needed.

property Props: TSdlProperties read GetProps write SetProps

Type: TSdlProperties


Stage

The stage the shader program corresponds to.

property Stage: TSdlGpuShaderStage read GetStage write SetStage

Type: TSdlGpuShaderStage


Method Descriptions

Create

Create with default values.

class function Create: TSdlGpuShaderCreateInfo; inline; static

Returns

TSdlGpuShaderCreateInfo


Init

Init with default values.

procedure Init; inline