Version: 2023.1
public uint renderingLayerMask ;

描述

A mask that you can access in HLSL with unity_RenderingLayer built-in shader uniform.

uniform float4 unity_RenderingLayer;

// HLSL usage example: uint renderingLayerMask = asuint(unity_RenderingLayer.x);