class
geometrydescribes the driver visible concept of geometry.
constructors, destructors, conversion operators
member-functions
Function documentation
core:: gfx:: geometry:: geometry(const UID& uid,
core:: resource:: cache& cache,
core:: resource:: handle<context> context,
core:: resource:: handle<core:: data:: geometry> data,
core:: resource:: handle<core:: gfx:: buffer> geometryBuffer,
core:: resource:: handle<core:: gfx:: buffer> indicesBuffer)
Brief
constructs, and uploads the geometry data to the buffers.
Parameters | |
---|---|
uid | |
cache | |
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:: gfx:: geometry:: compatible(const core:: gfx:: material& 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:: gfx:: geometry:: bind(vk::CommandBuffer& buffer,
const core:: gfx:: material& 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> core:: gfx:: geometry:: data() const noexcept
Returns | the geometry data used by this instance. |
---|