20 bufferDescriptor.
_name =
"SCENE_SHADER_DATA";
27 bufferDescriptor.
_name =
"SCENE_PROBE_DATA";
50 auto bindCmd = GFX::EnqueueCommand<GFX::BindShaderResourcesCommand>( bufferInOut );
#define PROFILE_SCOPE_AUTO(CATEGORY)
Rough around the edges Adapter pattern abstracting the actual rendering API and access to the GPU.
ShaderBuffer_uptr newSB(const ShaderBufferDescriptor &descriptor)
ProbeBufferData _probeData
SceneShaderBufferData _sceneBufferData
ShaderBuffer_uptr _probeShaderData
SceneShaderData(GFXDevice &context)
void updateSceneDescriptorSet(GFX::CommandBuffer &bufferInOut, GFX::MemoryBarrierCommand &memCmdInOut)
ShaderBuffer_uptr _sceneShaderData
Generic scene data that doesn't change per shader.
constexpr U8 MAX_FRAMES_IN_FLIGHT
Maximum number of active frames until we start waiting on a fence/sync.
constexpr Optick::Category::Type Graphics
Handle console commands that start with a forward slash.
void Set(DescriptorSetBindingData &dataInOut, ShaderBuffer *buffer, const BufferRange range) noexcept
DescriptorSetBinding & AddBinding(DescriptorSet &setInOut, U8 slot, U16 stageVisibilityMask)
constexpr U16 GLOBAL_PROBE_COUNT
BufferUpdateUsage _updateUsage
BufferUsageType _usageType
BufferUpdateFrequency _updateFrequency
size_t _elementSize
Buffer primitive size in bytes.
DescriptorSetBindingData _data
std::pair< bufferPtr, size_t > _initialData
BufferParams _bufferParams