HLSL: Plumb in HLSL parse context and keywords, and most basic HLSL parser and test.
This commit is contained in:
parent
b3dc3acd59
commit
e01a9bc8c0
16 changed files with 5047 additions and 16 deletions
|
|
@ -55,6 +55,24 @@ while read t; do
|
|||
done < test-spirv-list
|
||||
rm -f comp.spv frag.spv geom.spv tesc.spv tese.spv vert.spv
|
||||
|
||||
#
|
||||
# HLSL -> SPIR-V code generation tests
|
||||
#
|
||||
while read t; do
|
||||
case $t in
|
||||
\#*)
|
||||
# Skip comment lines in the test list file.
|
||||
;;
|
||||
*)
|
||||
echo Running HLSL-to-SPIR-V $t...
|
||||
b=`basename $t`
|
||||
$EXE -D -e PixelShaderFunction -H $t > $TARGETDIR/$b.out
|
||||
diff -b $BASEDIR/$b.out $TARGETDIR/$b.out || HASERROR=1
|
||||
;;
|
||||
esac
|
||||
done < test-hlsl-spirv-list
|
||||
rm -f comp.spv frag.spv geom.spv tesc.spv tese.spv vert.spv
|
||||
|
||||
#
|
||||
# Preprocessor tests
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue