-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
42878ed
commit 0217071
Showing
13 changed files
with
777 additions
and
12 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
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
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// dxc -spirv -fspv-reflect -T cs_6_0 -E csmain -fspv-target-env=vulkan1.2 | ||
uint g_global; | ||
|
||
struct MaterialData_t { | ||
float4 g_vTest; | ||
float2 g_vTest2; | ||
float3 g_vTest3; | ||
uint g_tTexture1; | ||
uint g_tTexture2; | ||
bool g_bTest1; | ||
bool g_bTest2; | ||
}; | ||
|
||
static MaterialData_t _g_MaterialData; | ||
|
||
ByteAddressBuffer g_MaterialData : register (t4 , space1); | ||
RWStructuredBuffer<uint2> Output : register(u1); | ||
|
||
[numthreads(1, 1, 1)] | ||
void csmain(uint3 tid : SV_DispatchThreadID) { | ||
uint2 a = g_MaterialData.Load2( tid.x + g_global ); | ||
uint b = g_MaterialData.Load( tid.x + g_global ); | ||
uint2 c = g_MaterialData.Load2(4); | ||
Output[tid.x] = a * uint2(b, b) * c; | ||
} |
Binary file not shown.
Oops, something went wrong.