-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
full subgroups require X dimension be a multiple of subgroup size
Also trying to narrow down the DXC bug #!@#!@#@!#!@#!@#~!
- Loading branch information
devsh
committed
Oct 18, 2024
1 parent
c5f12f0
commit 3415bb7
Showing
4 changed files
with
137 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,11 @@ | ||
#include "nbl/builtin/hlsl/cpp_compat.hlsl" | ||
|
||
NBL_CONSTEXPR uint32_t WorkgroupSizeX = 16; | ||
NBL_CONSTEXPR uint32_t WorkgroupSizeY = 16; | ||
NBL_CONSTEXPR uint32_t WorkgroupSizeX = 8; | ||
NBL_CONSTEXPR uint32_t WorkgroupSizeY = 8; | ||
NBL_CONSTEXPR uint32_t WorkgroupSize = WorkgroupSizeX*WorkgroupSizeY; | ||
|
||
static const uint32_t FRAMES_IN_FLIGHT = 3u; | ||
|
||
static const uint32_t RED_OFFSET = 0u; | ||
static const uint32_t GREEN_OFFSET = 256u; | ||
static const uint32_t BLUE_OFFSET = 256u * 2u; | ||
|
||
static const uint32_t CHANEL_CNT = 3; | ||
static const uint32_t VAL_PER_CHANEL_CNT = 256; | ||
static const uint32_t HISTOGRAM_SIZE = CHANEL_CNT * VAL_PER_CHANEL_CNT; | ||
static const uint32_t HISTOGRAM_BYTE_SIZE = HISTOGRAM_SIZE * sizeof(uint32_t); | ||
static const uint32_t COMBINED_HISTOGRAM_BUFFER_BYTE_SIZE = HISTOGRAM_BYTE_SIZE * FRAMES_IN_FLIGHT; | ||
|
||
struct PushConstants | ||
{ | ||
uint32_t histogramBufferOffset; | ||
uint32_t sharedAcceptableIdleCount : 10; | ||
uint32_t globalAcceptableIdleCount : 10; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters