core::ivk::geometry_t class

describes the driver visible concept of geometry.

constructors, destructors, conversion operators

geometry_t
constructs, and uploads the geometry data to the buffers.
public

member-functions

compatible
const public noexcept
bind
binds the geometry to the given material for rendering.
const public noexcept
data
const public noexcept

Function documentation

core::ivk::geometry_t::geometry_t(core::resource::cache_t& cache, const core::resource::metadata& metaData, psl::meta::file* metaFile, core::resource::handle<core::ivk::context> context, core::resource::handle<core::data::geometry_t> data, core::resource::handle<core::ivk::buffer_t> geometryBuffer, core::resource::handle<core::ivk::buffer_t> indicesBuffer)

Brief

constructs, and uploads the geometry data to the buffers.

Parameters
cache
metaData
metaFile
context
data in the geometry source data for this instance.
geometryBuffer in the buffer that the mesh data will be uploaded to.
indicesBuffer in the buffer that the indices data will be uploaded to.

bool core::ivk::geometry_t::compatible(const core::ivk::material_t& material) const noexcept

Parameters
material in the material to check against.
Returns wether this geometry can be combined with the given material (i.e. it has all the required channels that the material needs).

void core::ivk::geometry_t::bind(vk::CommandBuffer& buffer, const core::ivk::material_t& material) const noexcept

Brief

binds the geometry to the given material for rendering.

Details

Parameters
buffer in the command buffer to upload the commands to.
material in the material to bind with.

core::resource::handle<core::data::geometry_t> core::ivk::geometry_t::data() const noexcept

Returns the geometry data used by this instance.