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

Detailed Description

Specification


C Version:

// Provided by Wisdom 0.7.0.
typedef struct WisVertexBufferDesc {
WisBufferView buffer;
uint32_t size;
uint32_t stride;
uint32_t offset;
C Implementation Specific Version:
// Provided by Wisdom 0.7.0.
typedef struct WisVKVertexBufferDesc {
WisVKBufferView buffer;
uint32_t size;
uint32_t stride;
uint32_t offset;
} WisVKVertexBufferDesc;
// Provided by Wisdom 0.7.0.
typedef struct WisDX12VertexBufferDesc {
WisDX12BufferView buffer;
uint32_t size;
uint32_t stride;
uint32_t offset;
} WisDX12VertexBufferDesc;

C++ Version:

namespace wis{
// Provided by Wisdom 0.7.0.
struct VertexBufferDesc {
wis::BufferView buffer;
std::uint32_t size;
std::uint32_t stride;
std::uint32_t offset;
};
}
C++ Implementation Specific Version:
namespace wis{
// Provided by Wisdom 0.7.0.
struct VKVertexBufferDesc {
wis::VKBufferView buffer;
std::uint32_t size;
std::uint32_t stride;
std::uint32_t offset;
};
// Provided by Wisdom 0.7.0.
struct DX12VertexBufferDesc {
wis::DX12BufferView buffer;
std::uint32_t size;
std::uint32_t stride;
std::uint32_t offset;
};
}

Members


  • buffer Vertex Buffer to bind. The buffer view must have been created with usage flag.
  • size Size of the buffer in bytes.
  • stride Stride of the buffer in bytes.
  • offset Offset in buffer in bytes. Default is 0.

Description


See Also


See also
Functions: wisCommandListSetVertexBuffers