10 namespace BufferPool {
21 if (std::get<0>(result) && std::get<1>(result)) {
23 cmdBuffer.updateBuffer(
24 *std::get<1>(result)->getBuffer(),
26 lug::Graphics::Render::Material::Constants),
27 std::get<1>(result)->getOffset()
31 return std::get<1>(result);
uint32_t value
Access of the raw value of the above bytefield.
const SubBuffer * allocate(const API::CommandBuffer &cmdBuffer, ::lug::Graphics::Render::Material &material)
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 Constants & getConstants() const
Material(Renderer &renderer)
const QueueFamily * getQueueFamily() const
Class for Material. Is a Resource.
API::Device & getDevice()
bool isDirty(uint32_t currentFrame) const