netpoet coop and 64kode

This commit is contained in:
2026-04-19 00:41:25 +02:00
parent 8d0ab5b7cc
commit 227ea3bf05
367 changed files with 364128 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
Texture2DMS<float4,1> in0 : register(t0);
RWTexture1D<uint> histogramBucketR : register(u1);
RWTexture1D<uint> histogramBucketG : register(u2);
RWTexture1D<uint> histogramBucketB : register(u3);
RWTexture1D<float4> histogramOut : register(u4);
[numthreads(16, 16, 1)]
void main(uint3 id : SV_DispatchThreadID)
{
int3 iPixel = in0[id.xy].rgb * 255.0f;
InterlockedAdd(histogramBucketR[iPixel.r], 1);
InterlockedAdd(histogramBucketG[iPixel.g], 1);
InterlockedAdd(histogramBucketB[iPixel.b], 1);
}