sandbox
Loading...
Searching...
No Matches
sbx::graphics::mesh< Vertex > Class Template Reference

Public Types

using vertex_type = Vertex
 
using vertex_buffer_type = vertex_buffer< Vertex >
 
using index_type = std::uint32_t
 
using index_buffer_type = index_buffer< index_type >
 

Public Member Functions

 mesh (std::vector< vertex_type > &&vertices, std::vector< index_type > &&indices)
 
auto render (graphics::command_buffer &command_buffer, std::uint32_t instance_count=1u) const -> void
 
auto render_submesh (graphics::command_buffer &command_buffer, std::uint32_t submesh_index, std::uint32_t instance_count=1u) const -> void
 
auto submeshes () const noexcept -> const std::vector< submesh > &
 

Protected Member Functions

auto _upload_vertices (std::vector< vertex_type > &&vertices, std::vector< index_type > &&indices) -> void
 

Protected Attributes

std::unique_ptr< vertex_buffer_type_vertex_buffer {}
 
std::unique_ptr< index_buffer_type_index_buffer {}
 
std::vector< submesh_submeshes {}
 

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