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

Detailed Description

Specification


C version:

// Provided by Wisdom 0.7.0.
typedef struct WisInputAttribute {
uint32_t input_slot;
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 InputAttribute {
std::uint32_t input_slot;
const char* semantic_name;
std::uint32_t semantic_index;
std::uint32_t location;
wis::DataFormat format;
std::uint32_t offset_bytes;
};
}

Members


  • input_slot Input slot number. Must be unique.
  • semantic_name Semantic name of the attribute in HLSL. Must be unique and null terminated.
  • semantic_index Semantic index of the attribute in HLSL. Must be unique.
  • location Location of the attribute in HLSL. Must be unique.
  • format Data format of the attribute.
  • offset_bytes Offset in bytes from the beginning of the vertex.

Description


See Also


See also
WisInputLayout