mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1036602 - Fix up D3D11 genshaders.sh script; r=bas
From 42aa031e5b36efe5603525c7967557fec7e09ec5 Mon Sep 17 00:00:00 2001 --- gfx/layers/d3d11/genshaders.sh | 74 +++++++++++++++++++++++++----------------- 1 file changed, 45 insertions(+), 29 deletions(-)
This commit is contained in:
parent
4795d6beb0
commit
ea7294edf2
@ -3,33 +3,49 @@
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
tempfile=tmpShaderHeader
|
||||
rm CompositorD3D11Shaders.h
|
||||
fxc CompositorD3D11.hlsl -ELayerQuadVS -nologo -Tvs_4_0_level_9_3 -Fh$tempfile -VnLayerQuadVS
|
||||
cat $tempfile >> CompositorD3D11Shaders.h
|
||||
fxc CompositorD3D11.hlsl -ESolidColorShader -Tps_4_0_level_9_3 -nologo -Fh$tempfile -VnSolidColorShader
|
||||
cat $tempfile >> CompositorD3D11Shaders.h
|
||||
fxc CompositorD3D11.hlsl -ERGBShader -Tps_4_0_level_9_3 -nologo -Fh$tempfile -VnRGBShader
|
||||
cat $tempfile >> CompositorD3D11Shaders.h
|
||||
fxc CompositorD3D11.hlsl -ERGBAShader -Tps_4_0_level_9_3 -nologo -Fh$tempfile -VnRGBAShader
|
||||
cat $tempfile >> CompositorD3D11Shaders.h
|
||||
fxc CompositorD3D11.hlsl -EComponentAlphaShader -Tps_4_0_level_9_3 -nologo -Fh$tempfile -VnComponentAlphaShader
|
||||
cat $tempfile >> CompositorD3D11Shaders.h
|
||||
fxc CompositorD3D11.hlsl -EYCbCrShader -Tps_4_0_level_9_3 -nologo -Fh$tempfile -VnYCbCrShader
|
||||
cat $tempfile >> CompositorD3D11Shaders.h
|
||||
fxc CompositorD3D11.hlsl -ELayerQuadMaskVS -nologo -Tvs_4_0_level_9_3 -Fh$tempfile -VnLayerQuadMaskVS
|
||||
cat $tempfile >> CompositorD3D11Shaders.h
|
||||
fxc CompositorD3D11.hlsl -ELayerQuadMask3DVS -nologo -Tvs_4_0_level_9_3 -Fh$tempfile -VnLayerQuadMask3DVS
|
||||
cat $tempfile >> CompositorD3D11Shaders.h
|
||||
fxc CompositorD3D11.hlsl -ESolidColorShaderMask -Tps_4_0_level_9_3 -nologo -Fh$tempfile -VnSolidColorShaderMask
|
||||
cat $tempfile >> CompositorD3D11Shaders.h
|
||||
fxc CompositorD3D11.hlsl -ERGBShaderMask -Tps_4_0_level_9_3 -nologo -Fh$tempfile -VnRGBShaderMask
|
||||
cat $tempfile >> CompositorD3D11Shaders.h
|
||||
fxc CompositorD3D11.hlsl -ERGBAShaderMask -Tps_4_0_level_9_3 -nologo -Fh$tempfile -VnRGBAShaderMask
|
||||
cat $tempfile >> CompositorD3D11Shaders.h
|
||||
fxc CompositorD3D11.hlsl -ERGBAShaderMask3D -Tps_4_0_level_9_3 -nologo -Fh$tempfile -VnRGBAShaderMask3D
|
||||
cat $tempfile >> CompositorD3D11Shaders.h
|
||||
fxc CompositorD3D11.hlsl -EYCbCrShaderMask -Tps_4_0_level_9_3 -nologo -Fh$tempfile -VnYCbCrShaderMask
|
||||
cat $tempfile >> CompositorD3D11Shaders.h
|
||||
fxc CompositorD3D11.hlsl -EComponentAlphaShaderMask -Tps_4_0_level_9_3 -nologo -Fh$tempfile -VnComponentAlphaShaderMask
|
||||
cat $tempfile >> CompositorD3D11Shaders.h
|
||||
|
||||
FXC_DEBUG_FLAGS="-Zi -Fd shaders.pdb"
|
||||
FXC_FLAGS=""
|
||||
|
||||
# If DEBUG is in the environment, then rebuild with debug info
|
||||
if [ "$DEBUG" != "" ] ; then
|
||||
FXC_FLAGS="$FXC_DEBUG_FLAGS"
|
||||
fi
|
||||
|
||||
makeShaderVS() {
|
||||
fxc -nologo $FXC_FLAGS -Tvs_4_0_level_9_3 $SRC -E$1 -Vn$1 -Fh$tempfile
|
||||
cat $tempfile >> $DEST
|
||||
}
|
||||
|
||||
makeShaderPS() {
|
||||
fxc -nologo $FXC_FLAGS -Tps_4_0_level_9_3 $SRC -E$1 -Vn$1 -Fh$tempfile
|
||||
cat $tempfile >> $DEST
|
||||
}
|
||||
|
||||
SRC=CompositorD3D11.hlsl
|
||||
DEST=CompositorD3D11Shaders.h
|
||||
|
||||
rm -f $DEST
|
||||
makeShaderVS LayerQuadVS
|
||||
makeShaderPS SolidColorShader
|
||||
makeShaderPS RGBShader
|
||||
makeShaderPS RGBAShader
|
||||
makeShaderPS ComponentAlphaShader
|
||||
makeShaderPS YCbCrShader
|
||||
makeShaderVS LayerQuadMaskVS
|
||||
makeShaderVS LayerQuadMask3DVS
|
||||
makeShaderPS SolidColorShaderMask
|
||||
makeShaderPS RGBShaderMask
|
||||
makeShaderPS RGBAShaderMask
|
||||
makeShaderPS RGBAShaderMask3D
|
||||
makeShaderPS YCbCrShaderMask
|
||||
makeShaderPS ComponentAlphaShaderMask
|
||||
|
||||
SRC=CompositorD3D11VR.hlsl
|
||||
DEST=CompositorD3D11ShadersVR.h
|
||||
|
||||
rm -f $DEST
|
||||
makeShaderVS OculusVRDistortionVS
|
||||
makeShaderPS OculusVRDistortionPS
|
||||
|
||||
rm $tempfile
|
||||
|
Loading…
Reference in New Issue
Block a user