Skip to content

TSdlGpuTextureCreateInfo

A record specifying the parameters of a texture.

Note that certain usage combinations are invalid, for example Sampler and GraphicsStorage.

Definition

Unit: Neslib.Sdl3.Gpu

type TSdlGpuTextureCreateInfo = record ... end;

See Also

Properties

Name Description
Format The pixel format of the texture.
Height The height of the texture.
Kind The base dimensionality of the texture.
LayerCountOrDepth The layer count or depth of the texture. This value is treated as a layer count on 2D array textures, and as a depth value on 3D textures.
NumLevels The number of mip levels in the texture.
Props A properties ID for extensions. Should be 0 if no extensions are needed.
SampleCount The number of samples per texel. Only applies if the texture is used as a render target.
Usage How the texture is intended to be used by the client.
Width The width of the texture.

Methods

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

Property Descriptions

Format

The pixel format of the texture.

property Format: TSdlGpuTextureFormat read GetFormat write SetFormat

Type: TSdlGpuTextureFormat


Height

The height of the texture.

property Height: Integer read FHandle.height write FHandle.height

Type: Integer


Kind

The base dimensionality of the texture.

property Kind: TSdlGpuTextureKind read GetKind write SetKind

Type: TSdlGpuTextureKind


LayerCountOrDepth

The layer count or depth of the texture. This value is treated as a layer count on 2D array textures, and as a depth value on 3D textures.

property LayerCountOrDepth: Integer read FHandle.layer_count_or_depth write FHandle.layer_count_or_depth

Type: Integer


NumLevels

The number of mip levels in the texture.

property NumLevels: Integer read FHandle.num_levels write FHandle.num_levels

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


SampleCount

The number of samples per texel. Only applies if the texture is used as a render target.

property SampleCount: TSdlGpuSampleCount read GetSampleCount write SetSampleCount

Type: TSdlGpuSampleCount


Usage

How the texture is intended to be used by the client.

property Usage: TSdlGpuTextureUsageFlags read GetUsage write SetUsage

Type: TSdlGpuTextureUsageFlags


Width

The width of the texture.

property Width: Integer read FHandle.width write FHandle.width

Type: Integer


Method Descriptions

Create

Create with default values.

class function Create: TSdlGpuTextureCreateInfo; inline; static

Returns

TSdlGpuTextureCreateInfo


Init

Init with default values.

procedure Init; inline