diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2020-08-03 15:46:16 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-03 15:46:16 -0400 |
| commit | 79ba9279becf480c9d92bb2faaede0e241f0b029 (patch) | |
| tree | 5e904295c6b0731fdfba0d17ab03ba54d5f92565 /tests/hlsl-intrinsic/sampler-feedback/sampler-feedback-basic.slang.expected | |
| parent | 9ac5c51ae1f0664a9dcb31392894e4f76bdbcf98 (diff) | |
First pass support for Sampler Feedback (#1470)
* Add the Feedback texture types.
Depreciate SLANG_RESOURCE_EXT_SHAPE_MASK.
* Starting point to test sampler feedback.
* WIP on FeedbackSampler.
* Use __target_intrinsic to override the output of sampler feedback types.
* Use newer generic syntax for FeedbackTexture.
* Reflects Feedback type.
* SLANG_TYPE_KIND_TEXTURE_FEEDBACK -> SLANG_TYPE_KIND_FEEDBACK
* Added reflection test.
* Reneable issue with generics in sampler-feedback-basic.slang
* Add methods to FeedbackTexture2D/Array.
Make test cover test cases.
* Sampler feedback produces DXC code.
* Disabled Sampler feedback test - as requires newer version of DXC.
* Fix bug in reflection tool output.
* Fix problem with direct-spirv-emit.slang.expected due to update to glslang.
* Fix direct-spirv-emit.slang
* Use SLANG_RESOURCE_EXT_SHAPE_MASK again
* Make Feedback be emitted as a textue type prefix.
Co-authored-by: Tim Foley <tfoleyNV@users.noreply.github.com>
Diffstat (limited to 'tests/hlsl-intrinsic/sampler-feedback/sampler-feedback-basic.slang.expected')
| -rw-r--r-- | tests/hlsl-intrinsic/sampler-feedback/sampler-feedback-basic.slang.expected | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/tests/hlsl-intrinsic/sampler-feedback/sampler-feedback-basic.slang.expected b/tests/hlsl-intrinsic/sampler-feedback/sampler-feedback-basic.slang.expected new file mode 100644 index 000000000..1d4dda6b0 --- /dev/null +++ b/tests/hlsl-intrinsic/sampler-feedback/sampler-feedback-basic.slang.expected @@ -0,0 +1,110 @@ +result code = 0 +standard error = { +} +standard output = { +{ + "parameters": [ + { + "name": "feedbackMinMip", + "binding": {"kind": "unorderedAccess", "index": 0}, + "type": { + "kind": "resource", + "baseShape": "texture2D", + "feedback": true, + "access": "write", + "resultType": { + "kind": "Feedback", + "name": "SAMPLER_FEEDBACK_MIN_MIP" + } + } + }, + { + "name": "feedbackMipRegionUsed", + "binding": {"kind": "unorderedAccess", "index": 1}, + "type": { + "kind": "resource", + "baseShape": "texture2D", + "feedback": true, + "access": "write", + "resultType": { + "kind": "Feedback", + "name": "SAMPLER_FEEDBACK_MIP_REGION_USED" + } + } + }, + { + "name": "feedbackMinMipArray", + "binding": {"kind": "unorderedAccess", "index": 2}, + "type": { + "kind": "resource", + "baseShape": "texture2D", + "array": true, + "feedback": true, + "access": "write", + "resultType": { + "kind": "Feedback", + "name": "SAMPLER_FEEDBACK_MIN_MIP" + } + } + }, + { + "name": "feebackMipRegionUsedArray", + "binding": {"kind": "unorderedAccess", "index": 3}, + "type": { + "kind": "resource", + "baseShape": "texture2D", + "array": true, + "feedback": true, + "access": "write", + "resultType": { + "kind": "Feedback", + "name": "SAMPLER_FEEDBACK_MIP_REGION_USED" + } + } + }, + { + "name": "tex2D", + "binding": {"kind": "shaderResource", "index": 0}, + "type": { + "kind": "resource", + "baseShape": "texture2D" + } + }, + { + "name": "tex2DArray", + "binding": {"kind": "shaderResource", "index": 1}, + "type": { + "kind": "resource", + "baseShape": "texture2D", + "array": true + } + }, + { + "name": "samp", + "binding": {"kind": "samplerState", "index": 0}, + "type": { + "kind": "samplerState" + } + } + ], + "entryPoints": [ + { + "name": "main", + "stage:": "fragment", + "result:": { + "stage": "fragment", + "binding": {"kind": "varyingOutput", "index": 0}, + "semanticName": "SV_TARGET", + "type": { + "kind": "vector", + "elementCount": 4, + "elementType": { + "kind": "scalar", + "scalarType": "float32" + } + } + } + } + ] +} +} |
