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

Description

Represents a single unindexed draw-call.

See pass_graphics_state::draw_buffer for details.

#include "resource.hpp"

Public Attributes

std::uint32_t vertex_count = 0
 Number of 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_vertex = 0
 Index of the first vertex to draw. Essentially offsets gl_VertexIndex. (TODO: confirm that this is true)
 
std::uint32_t first_instance = 0
 Instance ID of the first instance to draw.
 

Member Data Documentation

◆ vertex_count

std::uint32_t tz::gpu::draw_t::vertex_count = 0

Number of vertices to draw.

◆ instance_count

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

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

◆ first_vertex

std::uint32_t tz::gpu::draw_t::first_vertex = 0

Index of the first vertex to draw. Essentially offsets gl_VertexIndex. (TODO: confirm that this is true)

◆ first_instance

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

Instance ID of the first instance to draw.