geometry class
describes the driver visible concept of geometry.
constructors, destructors, conversion operators
member-functions
Function documentation
core:: ivk:: geometry:: geometry(core::resource::cache& cache,
const core:: resource:: metadata& metaData,
psl:: meta:: file* metaFile,
core:: resource:: handle<core:: ivk:: context> context,
core:: resource:: handle<core:: data:: geometry> data,
core:: resource:: handle<core:: ivk:: buffer> geometryBuffer,
core:: resource:: handle<core:: ivk:: buffer> 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:: compatible(const core:: ivk:: 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:: ivk:: geometry:: bind(vk::CommandBuffer& buffer,
const core:: ivk:: 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:: ivk:: geometry:: data() const noexcept
| Returns | the geometry data used by this instance. |
|---|