summaryrefslogtreecommitdiff
path: root/tests/examplefiles
diff options
context:
space:
mode:
authorNathan Reed <nathaniel.reed@gmail.com>2016-12-29 17:48:53 -0800
committerNathan Reed <nathaniel.reed@gmail.com>2016-12-29 17:48:53 -0800
commitcf8b248613e70f575f5e6e1ae6a7a89278e28b8a (patch)
tree2696c33ed34af75159a27ee9c6dd7b2b33b42580 /tests/examplefiles
parent0c2366283d44534d6b289e650c68a0226c4e479d (diff)
downloadpygments-git-cf8b248613e70f575f5e6e1ae6a7a89278e28b8a.tar.gz
Add string literal parsing to HLSL lexer (copied from the one for C++).
- Also added a snippet to the example file where a string shows up (uncommon in HLSL).
Diffstat (limited to 'tests/examplefiles')
-rw-r--r--tests/examplefiles/example.hlsl11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/examplefiles/example.hlsl b/tests/examplefiles/example.hlsl
index 77f1fa49..21d0a672 100644
--- a/tests/examplefiles/example.hlsl
+++ b/tests/examplefiles/example.hlsl
@@ -155,3 +155,14 @@ void main(
o_rgb = diffuseColor * diffuseLight;
}
+
+[domain("quad")]
+void ds(
+ in float edgeFactors[4] : SV_TessFactor,
+ in float insideFactors[2] : SV_InsideTessFactor,
+ in OutputPatch<VData, 4> inp,
+ in float2 uv : SV_DomainLocation,
+ out float4 o_pos : SV_Position)
+{
+ o_pos = lerp(lerp(inp[0].pos, inp[1].pos, uv.x), lerp(inp[2].pos, inp[3].pos, uv.x), uv.y);
+}