// // This file was automatically generated. Please don't edit by hand. // #ifndef STACKLIT_CS_HLSL #define STACKLIT_CS_HLSL // // UnityEngine.Experimental.Rendering.HDPipeline.StackLit+SurfaceData: static fields // #define DEBUGVIEW_STACKLIT_SURFACEDATA_BASE_COLOR (1300) #define DEBUGVIEW_STACKLIT_SURFACEDATA_NORMAL (1301) #define DEBUGVIEW_STACKLIT_SURFACEDATA_NORMAL_VIEW_SPACE (1302) // // UnityEngine.Experimental.Rendering.HDPipeline.StackLit+BSDFData: static fields // #define DEBUGVIEW_STACKLIT_BSDFDATA_DIFFUSE_COLOR (1400) #define DEBUGVIEW_STACKLIT_BSDFDATA_NORMAL_WS (1401) #define DEBUGVIEW_STACKLIT_BSDFDATA_NORMAL_VIEW_SPACE (1402) // Generated from UnityEngine.Experimental.Rendering.HDPipeline.StackLit+SurfaceData // PackingRules = Exact struct SurfaceData { float3 baseColor; float3 normalWS; }; // Generated from UnityEngine.Experimental.Rendering.HDPipeline.StackLit+BSDFData // PackingRules = Exact struct BSDFData { float3 diffuseColor; float3 normalWS; }; // // Debug functions // void GetGeneratedSurfaceDataDebug(uint paramId, SurfaceData surfacedata, inout float3 result, inout bool needLinearToSRGB) { switch (paramId) { case DEBUGVIEW_STACKLIT_SURFACEDATA_BASE_COLOR: result = surfacedata.baseColor; needLinearToSRGB = true; break; case DEBUGVIEW_STACKLIT_SURFACEDATA_NORMAL: result = surfacedata.normalWS * 0.5 + 0.5; break; case DEBUGVIEW_STACKLIT_SURFACEDATA_NORMAL_VIEW_SPACE: result = surfacedata.normalWS * 0.5 + 0.5; break; } } // // Debug functions // void GetGeneratedBSDFDataDebug(uint paramId, BSDFData bsdfdata, inout float3 result, inout bool needLinearToSRGB) { switch (paramId) { case DEBUGVIEW_STACKLIT_BSDFDATA_DIFFUSE_COLOR: result = bsdfdata.diffuseColor; needLinearToSRGB = true; break; case DEBUGVIEW_STACKLIT_BSDFDATA_NORMAL_WS: result = bsdfdata.normalWS * 0.5 + 0.5; break; case DEBUGVIEW_STACKLIT_BSDFDATA_NORMAL_VIEW_SPACE: result = bsdfdata.normalWS * 0.5 + 0.5; break; } } #endif