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

Detailed Description

Specification


C version:

// Provided by Wisdom 0.7.0.
typedef struct WisInputAttributeDesc {
uint32_t binding_index;
const char* semantic_name;
uint32_t semantic_index;
uint32_t location;
WisDataFormat format;
uint32_t offset_bytes;

C++ version:

namespace wis{
// Provided by Wisdom 0.7.0.
struct InputAttributeDesc {
std::uint32_t binding_index;
const char* semantic_name;
std::uint32_t semantic_index;
std::uint32_t location;
wis::DataFormat format;
std::uint32_t offset_bytes;
};
}

Members


  • binding_index specifies index into an array of bindings that the attribute is tied to.
  • semantic_name defines semantic name of the attribute in HLSL; it must be unique and null-terminated.
  • semantic_index indicates semantic index of the attribute in HLSL; it must be unique.
  • location describes location of the attribute in HLSL; it must be unique.
  • format describes data format of the attribute.
  • offset_bytes describes offset in bytes from the beginning of the vertex.

Description


See Also


See also
Structs: WisInputLayout