Skip to content
Snippets Groups Projects
Commit faf68405 authored by Alexander Gauggel's avatar Alexander Gauggel
Browse files

[#106] Removed incorrect usage of max motion tile size in dispatch size...

[#106] Removed incorrect usage of max motion tile size in dispatch size computation and increased tile size from 8 to 20
parent df9f6d51
Branches
Tags
1 merge request!89Resolve "Indirect Dispatch"
......@@ -7,7 +7,7 @@ layout(set=0, binding=2, rgba8) uniform image2D outMotionMax;
layout(local_size_x = 8, local_size_y = 8, local_size_z = 1) in;
const int motionTileSize = 8;
const int motionTileSize = 20;
void main(){
......
......@@ -201,8 +201,8 @@ void App::run() {
m_core.prepareImageForStorage(cmdStream, m_renderTargets.motionMax);
const uint32_t motionTileDispatchCounts[3] = {
(m_core.getImageWidth( m_renderTargets.motionMax) + AppConfig::maxMotionTileSize - 1) / AppConfig::maxMotionTileSize,
(m_core.getImageHeight(m_renderTargets.motionMax) + AppConfig::maxMotionTileSize - 1) / AppConfig::maxMotionTileSize,
(m_core.getImageWidth( m_renderTargets.motionMax) + 7) / 8,
(m_core.getImageHeight(m_renderTargets.motionMax) + 7) / 8,
1 };
m_core.recordComputeDispatchToCmdStream(
......
......@@ -7,5 +7,5 @@ namespace AppConfig{
const vk::Format depthBufferFormat = vk::Format::eD32Sfloat;
const vk::Format colorBufferFormat = vk::Format::eB10G11R11UfloatPack32;
const vk::Format motionBufferFormat = vk::Format::eR16G16Sfloat;
const uint32_t maxMotionTileSize = 8;
const uint32_t maxMotionTileSize = 20; // must match "motionTileSize" in motionVectorMax.comp
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment