-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SDL3/SDL_GpuGraphicsPipelineTargetInfo: Added.
Live page is here: https://wiki.libsdl.org/SDL3/SDL_GpuGraphicsPipelineTargetInfo
- Loading branch information
1 parent
26635b8
commit 498e824
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
###### (This is the documentation for SDL3, which is the current stable version. [SDL2](https://wiki.libsdl.org/SDL2/) was the previous version!) | ||
# SDL_GPUDepthStencilState | ||
|
||
A structure specifying the descriptions of render targets used in a graphics pipeline. | ||
|
||
## Header File | ||
|
||
Defined in [<SDL3/SDL_gpu.h>](https://github.com/libsdl-org/SDL/blob/main/include/SDL3/SDL_gpu.h) | ||
|
||
## Syntax | ||
|
||
```c | ||
typedef struct SDL_GPUGraphicsPipelineTargetInfo | ||
{ | ||
const SDL_GPUColorTargetDescription *color_target_descriptions; /**< A pointer to an array of color target descriptions. */ | ||
Uint32 num_color_targets; /**< The number of color target descriptions in the above array. */ | ||
SDL_GPUTextureFormat depth_stencil_format; /**< The pixel format of the depth-stencil target. Ignored if has_depth_stencil_target is false. */ | ||
bool has_depth_stencil_target; /**< true specifies that the pipeline uses a depth-stencil target. */ | ||
Uint8 padding1; | ||
Uint8 padding2; | ||
Uint8 padding3; | ||
} SDL_GPUGraphicsPipelineTargetInfo; | ||
``` | ||
|
||
## Version | ||
|
||
This struct is available since SDL 3.0.0 | ||
|
||
## See Also | ||
|
||
- [SDL_GPUGraphicsPipelineCreateInfo](SDL_GPUGraphicsPipelineCreateInfo) | ||
|
||
---- | ||
[CategoryAPI](CategoryAPI), [CategoryAPIStruct](CategoryAPIStruct), [CategoryGPU](CategoryGPU) |