39 {
41
43
45 .AddPushConstant(sizeof(uint32_t))
46 .AddStorageTexture(2, 0, VK_SHADER_STAGE_COMPUTE_BIT, { "SceneColor" })
47 .AddStorageTextureMipmaps(2, 1, VK_SHADER_STAGE_COMPUTE_BIT,
"Bloom", image->GetFormat(),
TextureType::Texture2D, [&](RendererResourceCreateInfo& info) {
48 info.mipLevel = SpicesShader::POST_BLOOM_MIPMAP;
49 info.sizeScale = 0.5f;
50 })
51 .Build();
52
54 .AddPushConstant(sizeof(PostProcessR::BloomPushConstant))
55 .AddStorageTexture(2, 0, VK_SHADER_STAGE_COMPUTE_BIT, { "SceneColor" })
56 .AddStorageTextureMipmaps(2, 1, VK_SHADER_STAGE_COMPUTE_BIT,
"Bloom", image->GetFormat(),
TextureType::Texture2D, [&](RendererResourceCreateInfo& info) {
57 info.mipLevel = SpicesShader::POST_BLOOM_MIPMAP;
58 info.sizeScale = 0.5f;
59 })
60 .Build();
61
63 .Build();
64
66 .AddPushConstant(sizeof(uint64_t))
67 .AddStorageTexture(2, 0, VK_SHADER_STAGE_COMPUTE_BIT, { "SceneColor" })
69 }
#define SPICES_PROFILE_ZONE
friend class DescriptorSetBuilder
Allow this class access all data.
std::shared_ptr< RendererResourcePool > m_RendererResourcePool
RendererResourcePool, Passed by instanced.