mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-30 10:45:06 +00:00
14 lines
315 B
HLSL
14 lines
315 B
HLSL
|
|
struct FragmentInput_derivatives {
|
|
float4 foo_1 : SV_Position;
|
|
};
|
|
|
|
float4 derivatives(FragmentInput_derivatives fragmentinput_derivatives) : SV_Target0
|
|
{
|
|
float4 foo = fragmentinput_derivatives.foo_1;
|
|
float4 x = ddx(foo);
|
|
float4 y = ddy(foo);
|
|
float4 z = fwidth(foo);
|
|
return ((x + y) * z);
|
|
}
|