MCPcopy Create free account
hub / github.com/DiligentGraphics/DiligentFX / Bloom

Method Bloom

PostProcess/Bloom/src/Bloom.cpp:60–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58};
59
60Bloom::Bloom(IRenderDevice* pDevice, const CreateInfo& CI) :
61 m_BloomAttribs{std::make_unique<HLSL::BloomAttribs>()},
62 m_Settings{CI}
63{
64 DEV_CHECK_ERR(pDevice != nullptr, "pDevice must not be null");
65
66 RefCntAutoPtr<IBuffer> pBuffer;
67 CreateUniformBuffer(pDevice, sizeof(HLSL::BloomAttribs), "Bloom::ConstantBuffer", &pBuffer, USAGE_DEFAULT, BIND_UNIFORM_BUFFER, CPU_ACCESS_NONE, m_BloomAttribs.get());
68 m_Resources.Insert(RESOURCE_IDENTIFIER_CONSTANT_BUFFER, pBuffer);
69}
70
71Bloom::~Bloom() {}
72

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected