From fcc76b257ef5cfb4514669df3b0144f8e8dd76ef Mon Sep 17 00:00:00 2001 From: yum Date: Fri, 2 Jan 2026 16:21:34 -0800 Subject: Fold: implement dynamic branching in shader Switch from static branching approach using per-op data and fixed execution order to dynamic branching approach using dynamic data. This confers the main benefit of letting us dynamically reorder ops and duplicate them. It also lets us eliminate some of the plumbing tedium whenever we want to add new ops. --- features.cginc | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'features.cginc') diff --git a/features.cginc b/features.cginc index 17f0566..f693049 100644 --- a/features.cginc +++ b/features.cginc @@ -37,33 +37,6 @@ #pragma shader_feature_local _VERTEX_DEFORMATION_TESSELLATION //endex -//ifex _Vertex_Deformation_Tubes_Enabled==0 -#pragma shader_feature_local _VERTEX_DEFORMATION_TUBES -#pragma shader_feature_local _VERTEX_DEFORMATION_TUBE_TO_PLANE_0 -#pragma shader_feature_local _VERTEX_DEFORMATION_AXIS_ALIGN -#pragma shader_feature_local _VERTEX_DEFORMATION_TUBE_TO_PLANE_1 -#pragma shader_feature_local _VERTEX_DEFORMATION_PLANE_TO_TUBE_0 -#pragma shader_feature_local _VERTEX_DEFORMATION_POINT_ALIGN_0 -#pragma shader_feature_local _VERTEX_DEFORMATION_POINT_ALIGN_1 -#pragma shader_feature_local _VERTEX_DEFORMATION_PLANE_TO_TUBE_1 -//endex - -//ifex _Vertex_Deformation_L2_L1_Enabled==0 -#pragma shader_feature_local _VERTEX_DEFORMATION_NORM_CONVERSION -//endex - -//ifex _Vertex_Deformation_Seal_Enabled==0 -#pragma shader_feature_local _VERTEX_DEFORMATION_SEAL -//endex - -//ifex _Vertex_Deformation_Sine_Waves_Enabled==0 -#pragma shader_feature_local _VERTEX_DEFORMATION_SINE_WAVES -//endex - -//ifex _Vertex_Deformation_FBM_Enabled==0 -#pragma shader_feature_local _VERTEX_DEFORMATION_FBM -//endex - //ifex _Unlit==0 #pragma shader_feature_local _UNLIT //endex -- cgit v1.2.3