Ejemplo n.º 1
0
        private static RenderTargetLayerType ConvertLayerTypeDescToLayerType(RenderTargetLayerTypeDescription renderTargetLayerTypeDescription)
        {
            switch (renderTargetLayerTypeDescription)
            {
            case RenderTargetLayerTypeDescription.Color:
                return(RenderTargetLayerType.Color);

            case RenderTargetLayerTypeDescription.Normal:
                return(RenderTargetLayerType.Normal);

            default:
                throw new ArgumentOutOfRangeException("renderTargetLayerTypeDescription");
            }
        }
 public RenderTargetDescription(Format format, RenderTargetLayerTypeDescription layerType, Color4 initialColor)
 {
     Format       = format;
     LayerType    = layerType;
     InitialColor = initialColor;
 }
 private static RenderTargetLayerType ConvertLayerTypeDescToLayerType(RenderTargetLayerTypeDescription renderTargetLayerTypeDescription)
 {
     switch (renderTargetLayerTypeDescription)
     {
         case RenderTargetLayerTypeDescription.Color:
             return RenderTargetLayerType.Color;
         case RenderTargetLayerTypeDescription.Normal:
             return RenderTargetLayerType.Normal;
         default:
             throw new ArgumentOutOfRangeException("renderTargetLayerTypeDescription");
     }
 }
 public RenderTargetDescription(Format format, RenderTargetLayerTypeDescription layerType, Color4 initialColor)
 {
     Format = format;
     LayerType = layerType;
     InitialColor = initialColor;
 }