File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 88using UnityEditor . Graphing ;
99using UnityEditor . ShaderGraph . Legacy ;
1010using UnityEditor . Rendering . HighDefinition . ShaderGraph . Legacy ;
11+ using UnityEditor . VFX ;
1112using static UnityEngine . Rendering . HighDefinition . HDMaterialProperties ;
1213using static UnityEditor . Rendering . HighDefinition . HDShaderUtils ;
1314
@@ -60,8 +61,13 @@ public override void Setup(ref TargetSetupContext context)
6061 protected override IEnumerable < SubShaderDescriptor > EnumerateSubShaders ( )
6162 {
6263 yield return PostProcessSubShader ( GetSubShaderDescriptor ( ) ) ;
63- if ( supportRaytracing || supportPathtracing )
64- yield return PostProcessSubShader ( GetRaytracingSubShaderDescriptor ( ) ) ;
64+
65+ // Always omit DXR SubShader for VFX until DXR support is added.
66+ if ( ! VFXSubTarget . IsConfigured ( ) )
67+ {
68+ if ( supportRaytracing || supportPathtracing )
69+ yield return PostProcessSubShader ( GetRaytracingSubShaderDescriptor ( ) ) ;
70+ }
6571 }
6672
6773 protected virtual SubShaderDescriptor GetSubShaderDescriptor ( )
You can’t perform that action at this time.
0 commit comments