mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Add texCUBE() function.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
committed by
Alexandre Julliard
parent
269747dbf3
commit
c39c5b3907
Notes:
Alexandre Julliard
2023-08-29 22:15:45 +02:00
Approved-by: Zebediah Figura (@zfigura) Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/314
@@ -49,3 +49,14 @@ float4 main() : sv_target
|
||||
{
|
||||
return tex2D(s, float2(0.0, 0.0)) + tex3D(s, float3(0.0, 0.0, 0.0));
|
||||
}
|
||||
|
||||
[require]
|
||||
options: backcompat
|
||||
|
||||
[pixel shader]
|
||||
samplerCUBE s;
|
||||
|
||||
float4 main() : sv_target
|
||||
{
|
||||
return texCUBE(s, float3(0.0, 0.0, 0.0));
|
||||
}
|
||||
|
Reference in New Issue
Block a user