yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
662f43fff
master
1//TEST_DISABLED:CROSS_COMPILE: -profile ps_5_0 -entry main -target spirv-assembly 2 3// Note: disabled, pending adding an IR-based definition for `GetDimensions`. 4 5// Ensure that `GetDimensions` with `mipCount` output works 6// on a `Texture2D` 7 8layout(binding = 1) 9Texture2D t; 10 11float4 main() : SV_Target 12{ 13 uint x, y, mipCount; 14 t.GetDimensions(0, x, y, mipCount); 15 16 return float4(x, y, mipCount, 0); 17}