gfx/angle/src/libGLESv2/renderer/shaders/Clear11.hlsl

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

michael@0 1 void VS_Clear( in float3 inPosition : POSITION, in float4 inColor : COLOR,
michael@0 2 out float4 outPosition : SV_POSITION, out float4 outColor : COLOR)
michael@0 3 {
michael@0 4 outPosition = float4(inPosition, 1.0f);
michael@0 5 outColor = inColor;
michael@0 6 }
michael@0 7
michael@0 8 // Assume we are in SM4+, which has 8 color outputs
michael@0 9 struct PS_OutputMultiple
michael@0 10 {
michael@0 11 float4 color0 : SV_TARGET0;
michael@0 12 float4 color1 : SV_TARGET1;
michael@0 13 float4 color2 : SV_TARGET2;
michael@0 14 float4 color3 : SV_TARGET3;
michael@0 15 float4 color4 : SV_TARGET4;
michael@0 16 float4 color5 : SV_TARGET5;
michael@0 17 float4 color6 : SV_TARGET6;
michael@0 18 float4 color7 : SV_TARGET7;
michael@0 19 };
michael@0 20
michael@0 21 PS_OutputMultiple PS_ClearMultiple(in float4 inPosition : SV_POSITION, in float4 inColor : COLOR)
michael@0 22 {
michael@0 23 PS_OutputMultiple outColor;
michael@0 24 outColor.color0 = inColor;
michael@0 25 outColor.color1 = inColor;
michael@0 26 outColor.color2 = inColor;
michael@0 27 outColor.color3 = inColor;
michael@0 28 outColor.color4 = inColor;
michael@0 29 outColor.color5 = inColor;
michael@0 30 outColor.color6 = inColor;
michael@0 31 outColor.color7 = inColor;
michael@0 32 return outColor;
michael@0 33 }
michael@0 34
michael@0 35 float4 PS_ClearSingle(in float4 inPosition : SV_Position, in float4 inColor : COLOR) : SV_Target0
michael@0 36 {
michael@0 37 return inColor;
michael@0 38 }

mercurial