wisdom
Loading...
Searching...
No Matches
wis::PushConstant Struct Reference

Detailed Description

A set of constants that get pushed directly to the pipeline. Only one set can be created per shader stage.

struct PushConstant {
uint32_t size_bytes;
uint32_t bind_register;
};
ShaderStages
Shader stages that can be used in the pipeline. Main use is Root signature and descriptor management....
Definition api.hpp:77
A set of constants that get pushed directly to the pipeline. Only one set can be created per shader s...
Definition api.hpp:1759

Definition at line 1759 of file api.hpp.

#include <api.hpp>

Public Attributes

wis::ShaderStages stage
 Shader stage. Defines the stage where the constant is used.
 
uint32_t size_bytes
 Size of the constant in bytes. Must be divisible by 4.
 
uint32_t bind_register
 Bind register number in HLSL.
 

Data Members

◆ bind_register

uint32_t wis::PushConstant::bind_register

Bind register number in HLSL.

Definition at line 1762 of file api.hpp.

◆ size_bytes

uint32_t wis::PushConstant::size_bytes

Size of the constant in bytes. Must be divisible by 4.

Definition at line 1761 of file api.hpp.

◆ stage

wis::ShaderStages wis::PushConstant::stage

Shader stage. Defines the stage where the constant is used.

Definition at line 1760 of file api.hpp.


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