Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::model::submit_vertex_pulling_callbacks::params Struct Reference

Per-invocation information for a vertex-pulling submesh submit. More...

#include <model.h>

Public Attributes

bool skinned {}
 True during the skinned pass, false during non-skinned.
 
bool preserve_state {}
 Hint: mirror submit_callbacks::params::preserve_state.
 
uint32_t submesh_index {}
 Submesh index within the LOD mesh.
 
uint32_t index_start {}
 Starting index of the submesh in the index buffer (in indices).
 
uint32_t index_count {}
 Number of indices making up the submesh.
 
uint32_t vertex_stride_floats {}
 Vertex stride expressed in float-sized elements.
 
uint32_t position_offset_floats {}
 Byte offset of the position attribute converted to floats.
 
uint32_t weight_offset_floats {}
 Byte offset of the bone weight attribute converted to floats.
 
uint32_t indices_offset_floats {}
 Byte offset of the bone indices attribute converted to floats.
 

Detailed Description

Per-invocation information for a vertex-pulling submesh submit.

Attribute offsets and vertex stride are expressed in sizeof(float) elements because the vertex buffer is exposed to shaders as a Buffer<float>. Bone indices/weights offsets are only meaningful when skinned is true; the caller should ignore them otherwise.

Definition at line 618 of file model.h.

Member Data Documentation

◆ index_count

uint32_t unravel::model::submit_vertex_pulling_callbacks::params::index_count {}

Number of indices making up the submesh.

Definition at line 624 of file model.h.

◆ index_start

uint32_t unravel::model::submit_vertex_pulling_callbacks::params::index_start {}

Starting index of the submesh in the index buffer (in indices).

Definition at line 623 of file model.h.

◆ indices_offset_floats

uint32_t unravel::model::submit_vertex_pulling_callbacks::params::indices_offset_floats {}

Byte offset of the bone indices attribute converted to floats.

Definition at line 628 of file model.h.

◆ position_offset_floats

uint32_t unravel::model::submit_vertex_pulling_callbacks::params::position_offset_floats {}

Byte offset of the position attribute converted to floats.

Definition at line 626 of file model.h.

◆ preserve_state

bool unravel::model::submit_vertex_pulling_callbacks::params::preserve_state {}

Hint: mirror submit_callbacks::params::preserve_state.

Definition at line 621 of file model.h.

◆ skinned

bool unravel::model::submit_vertex_pulling_callbacks::params::skinned {}

True during the skinned pass, false during non-skinned.

Definition at line 620 of file model.h.

◆ submesh_index

uint32_t unravel::model::submit_vertex_pulling_callbacks::params::submesh_index {}

Submesh index within the LOD mesh.

Definition at line 622 of file model.h.

◆ vertex_stride_floats

uint32_t unravel::model::submit_vertex_pulling_callbacks::params::vertex_stride_floats {}

Vertex stride expressed in float-sized elements.

Definition at line 625 of file model.h.

◆ weight_offset_floats

uint32_t unravel::model::submit_vertex_pulling_callbacks::params::weight_offset_floats {}

Byte offset of the bone weight attribute converted to floats.

Definition at line 627 of file model.h.


The documentation for this struct was generated from the following file: