mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Add a stub for the noise() intrinsic.
This function is used in tx_1_0 code, but is also supported in fx_2_0 and fx_4_0 expressions. Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
committed by
Henri Verbeet
parent
93e1a8c784
commit
f135f7fe07
Notes:
Henri Verbeet
2025-06-19 20:52:05 +02:00
Approved-by: Elizabeth Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1564
33
tests/hlsl/noise.shader_test
Normal file
33
tests/hlsl/noise.shader_test
Normal file
@@ -0,0 +1,33 @@
|
||||
[pixel shader fail(sm>=6)]
|
||||
float v1;
|
||||
float1 v2;
|
||||
float4 v3;
|
||||
int2 v4;
|
||||
int3 v5;
|
||||
|
||||
float4 func()
|
||||
{
|
||||
return noise(v1) + noise(v2) + noise(v3) + noise(v4) + noise(v5);
|
||||
}
|
||||
|
||||
float4 main() : sv_target
|
||||
{
|
||||
return float4(1, 2, 3, 4);
|
||||
}
|
||||
|
||||
[test]
|
||||
draw quad
|
||||
probe (0, 0) f32(1.0, 2.0, 3.0, 4.0)
|
||||
|
||||
[pixel shader fail]
|
||||
float2x2 v1;
|
||||
|
||||
float4 func()
|
||||
{
|
||||
return noise(v1);
|
||||
}
|
||||
|
||||
float4 main() : sv_target
|
||||
{
|
||||
return float4(1, 2, 3, 4);
|
||||
}
|
Reference in New Issue
Block a user