Topaz 5.0
Topaz Game Engine
Loading...
Searching...
No Matches
tz::gpu::draw_indexed_t Struct Reference

Description

Represents a single indexed draw-call.

See pass_graphics_state::draw_buffer for details.

#include "resource.hpp"

Public Attributes

std::uint32_t index_count = 0
 Number of indices (vertices) to draw.
 
std::uint32_t instance_count = 1
 Number of instances to draw. If you're not doing GPU instancing, you probably want this to be 1.
 
std::uint32_t first_index = 0
 Index of the first index to draw (within the index buffer).
 
std::int32_t vertex_offset = 0
 An offset added to each index value before indexing into the vertex buffer.
 
std::uint32_t first_instance = 0
 Instance ID of the first instance to draw.
 

Member Data Documentation

◆ index_count

std::uint32_t tz::gpu::draw_indexed_t::index_count = 0

Number of indices (vertices) to draw.

◆ instance_count

std::uint32_t tz::gpu::draw_indexed_t::instance_count = 1

Number of instances to draw. If you're not doing GPU instancing, you probably want this to be 1.

◆ first_index

std::uint32_t tz::gpu::draw_indexed_t::first_index = 0

Index of the first index to draw (within the index buffer).

◆ vertex_offset

std::int32_t tz::gpu::draw_indexed_t::vertex_offset = 0

An offset added to each index value before indexing into the vertex buffer.

◆ first_instance

std::uint32_t tz::gpu::draw_indexed_t::first_instance = 0

Instance ID of the first instance to draw.