#include <TransformGPUBuffer.hpp>
◆ TransformGPUBuffer()
| DefaultPipeline::Resource::TransformGPUBuffer::TransformGPUBuffer |
( |
Engine::Entity | entity | ) |
|
|
inlineexplicit |
◆ ~TransformGPUBuffer()
| DefaultPipeline::Resource::TransformGPUBuffer::~TransformGPUBuffer |
( |
| ) |
|
|
inlineoverride |
◆ _CreateBuffer()
◆ _UpdateBuffer()
Update the GPU buffer with the entity's current model and normal matrices.
Computes the model matrix from the provided Transform component, derives the normal matrix as the transpose of the inverse of the model matrix, packs both into a TransformGPUData instance, and writes the data to the GPU buffer at offset 0 using the provided graphics context queue.
- Parameters
-
| transformComponent | Component used to compute the model transformation matrix. |
| context | Graphics context containing the queue used to write to the GPU buffer. |
◆ Create()
| void DefaultPipeline::Resource::TransformGPUBuffer::Create |
( |
Engine::Core & | core | ) |
|
|
inlineoverridevirtual |
◆ Destroy() [1/2]
| void DefaultPipeline::Resource::TransformGPUBuffer::Destroy |
( |
| ) |
|
|
inline |
◆ Destroy() [2/2]
| void DefaultPipeline::Resource::TransformGPUBuffer::Destroy |
( |
Engine::Core & | core | ) |
|
|
inlineoverridevirtual |
◆ GetBuffer()
| const wgpu::Buffer & DefaultPipeline::Resource::TransformGPUBuffer::GetBuffer |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ IsCreated()
| bool DefaultPipeline::Resource::TransformGPUBuffer::IsCreated |
( |
Engine::Core & | core | ) |
const |
|
inlineoverridevirtual |
◆ Update()
| void DefaultPipeline::Resource::TransformGPUBuffer::Update |
( |
Engine::Core & | core | ) |
|
|
inlineoverridevirtual |
◆ _buffer
| wgpu::Buffer DefaultPipeline::Resource::TransformGPUBuffer::_buffer |
|
private |
◆ _entity
◆ _isCreated
| bool DefaultPipeline::Resource::TransformGPUBuffer::_isCreated = false |
|
private |
The documentation for this class was generated from the following file: