formating

This commit is contained in:
mklefrancois 2021-01-04 10:49:02 +01:00
parent 7082dca46d
commit 7f903f8a22

View file

@ -421,7 +421,7 @@ void HelloVulkan::createLanternIndirectCompPipeline()
stageInfo.setPName("main"); stageInfo.setPName("main");
// Set up push constant and pipeline layout. // Set up push constant and pipeline layout.
constexpr auto pushSize = sizeof(m_lanternIndirectPushConstants); constexpr auto pushSize = static_cast<uint32_t>(sizeof(m_lanternIndirectPushConstants));
vk::PushConstantRange pushCRange = {vk::ShaderStageFlagBits::eCompute, 0, pushSize}; vk::PushConstantRange pushCRange = {vk::ShaderStageFlagBits::eCompute, 0, pushSize};
static_assert(pushSize <= 128, "Spec guarantees only 128 byte push constant"); static_assert(pushSize <= 128, "Spec guarantees only 128 byte push constant");
vk::PipelineLayoutCreateInfo layoutInfo; vk::PipelineLayoutCreateInfo layoutInfo;