|
|
|
|
|
|
[Flags] |
|
|
|
public enum PipelineCapabilities |
|
|
|
{ |
|
|
|
AdditionalLights = (1 << 0), |
|
|
|
VertexLights = (1 << 1), |
|
|
|
DirectionalShadows = (1 << 2), |
|
|
|
LocalShadows = (1 << 3), |
|
|
|
SoftShadows = (1 << 4), |
|
|
|
AdditionalLights = (1 << 0), |
|
|
|
VertexLights = (1 << 1), |
|
|
|
DirectionalShadows = (1 << 2), |
|
|
|
LocalShadows = (1 << 3), |
|
|
|
SoftShadows = (1 << 4), |
|
|
|
} |
|
|
|
|
|
|
|
public class LightweightKeywords |
|
|
|
|
|
|
|
|
|
|
public partial class LightweightPipeline |
|
|
|
{ |
|
|
|
static PipelineCapabilities pipelineCapabilities; |
|
|
|
static PipelineCapabilities s_PipelineCapabilities; |
|
|
|
return pipelineCapabilities; |
|
|
|
return s_PipelineCapabilities; |
|
|
|
pipelineCapabilities = 0U; |
|
|
|
s_PipelineCapabilities = 0U; |
|
|
|
pipelineCapabilities |= PipelineCapabilities.AdditionalLights; |
|
|
|
s_PipelineCapabilities |= PipelineCapabilities.AdditionalLights; |
|
|
|
pipelineCapabilities |= PipelineCapabilities.VertexLights; |
|
|
|
s_PipelineCapabilities |= PipelineCapabilities.VertexLights; |
|
|
|
pipelineCapabilities |= PipelineCapabilities.DirectionalShadows; |
|
|
|
s_PipelineCapabilities |= PipelineCapabilities.DirectionalShadows; |
|
|
|
pipelineCapabilities |= PipelineCapabilities.LocalShadows; |
|
|
|
s_PipelineCapabilities |= PipelineCapabilities.LocalShadows; |
|
|
|
pipelineCapabilities |= PipelineCapabilities.SoftShadows; |
|
|
|
s_PipelineCapabilities |= PipelineCapabilities.SoftShadows; |
|
|
|
} |
|
|
|
} |
|
|
|
} |