wisdom
Loading...
Searching...
No Matches
WisPushConstant Struct Reference

Detailed Description

Specification


C version:

// Provided by Wisdom 0.7.0.
typedef struct WisPushConstant {
WisShaderVisibility visibility;
uint32_t size_bytes;
uint32_t bind_register;
uint32_t bind_space;

C++ version:

namespace wis{
// Provided by Wisdom 0.7.0.
struct PushConstant {
wis::ShaderVisibility visibility;
std::uint32_t size_bytes;
std::uint32_t bind_register;
std::uint32_t bind_space;
};
}

Members


  • visibility defines shader stage visibility for the push constant.
  • size_bytes describes size of the constant in bytes; it must be divisible by 4.
  • bind_register describes bind register number in HLSL.
  • bind_space defines bind space number in HLSL as register(regN, spaceN).

Description


See Also


See also
Structs: WisRootSignatureDesc