SDL 3.0
SDL_GPUGraphicsPipelineTargetInfo Struct Reference

#include <SDL_gpu.h>

+ Collaboration diagram for SDL_GPUGraphicsPipelineTargetInfo:

Data Fields

const SDL_GPUColorTargetDescriptioncolor_target_descriptions
 
Uint32 num_color_targets
 
SDL_GPUTextureFormat depth_stencil_format
 
bool has_depth_stencil_target
 
Uint8 padding1
 
Uint8 padding2
 
Uint8 padding3
 

Detailed Description

A structure specifying the descriptions of render targets used in a graphics pipeline.

Since
This struct is available since SDL 3.1.3
See also
SDL_GPUGraphicsPipelineCreateInfo

Definition at line 1639 of file SDL_gpu.h.

Field Documentation

◆ color_target_descriptions

const SDL_GPUColorTargetDescription* SDL_GPUGraphicsPipelineTargetInfo::color_target_descriptions

A pointer to an array of color target descriptions.

Definition at line 1641 of file SDL_gpu.h.

◆ depth_stencil_format

SDL_GPUTextureFormat SDL_GPUGraphicsPipelineTargetInfo::depth_stencil_format

The pixel format of the depth-stencil target. Ignored if has_depth_stencil_target is false.

Definition at line 1643 of file SDL_gpu.h.

◆ has_depth_stencil_target

bool SDL_GPUGraphicsPipelineTargetInfo::has_depth_stencil_target

true specifies that the pipeline uses a depth-stencil target.

Definition at line 1644 of file SDL_gpu.h.

◆ num_color_targets

Uint32 SDL_GPUGraphicsPipelineTargetInfo::num_color_targets

The number of color target descriptions in the above array.

Definition at line 1642 of file SDL_gpu.h.

◆ padding1

Uint8 SDL_GPUGraphicsPipelineTargetInfo::padding1

Definition at line 1645 of file SDL_gpu.h.

◆ padding2

Uint8 SDL_GPUGraphicsPipelineTargetInfo::padding2

Definition at line 1646 of file SDL_gpu.h.

◆ padding3

Uint8 SDL_GPUGraphicsPipelineTargetInfo::padding3

Definition at line 1647 of file SDL_gpu.h.


The documentation for this struct was generated from the following file: