10 namespace BufferPool {
21 if (std::get<0>(result) && std::get<1>(result)) {
23 const Math::Mat4x4f cameraData[] = {
28 cmdBuffer.updateBuffer(*std::get<1>(result)->getBuffer(), cameraData,
sizeof(cameraData), std::get<1>(result)->getOffset());
31 return std::get<1>(result);
uint32_t value
Access of the raw value of the above bytefield.
Camera(Renderer &renderer)
std::tuple< bool, const SubBuffer * > allocate(size_t hash, bool dirty)
const API::Queue * getQueue(const std::string &queueName) const
Handle getHandle() const
Returns the handle of the Resource.
const QueueFamily * getQueueFamily() const
const Math::Mat4x4f & getViewMatrix()
Gets the view matrix. Computes it if needed, but internally the view matrix is cached.
API::Device & getDevice()
const SubBuffer * allocate(const API::CommandBuffer &cmdBuffer, ::lug::Graphics::Render::Camera::Camera &camera)
const Math::Mat4x4f & getProjectionMatrix()
Gets the projection matrix. Computes it if needed, but internally the projection matrix is cached...
bool isDirty(uint32_t currentFrame) const