public CustomRenderTexture(int width, int height, RenderTextureFormat format, RenderTextureReadWrite readWrite)
 {
     CustomRenderTexture.Internal_CreateCustomRenderTexture(this, readWrite);
     this.width  = width;
     this.height = height;
     base.format = format;
 }
 public CustomRenderTexture(int width, int height)
 {
     CustomRenderTexture.Internal_CreateCustomRenderTexture(this, RenderTextureReadWrite.Default);
     this.width  = width;
     this.height = height;
     base.format = RenderTextureFormat.Default;
 }
Пример #3
0
        public CustomRenderTexture(int width, int height, GraphicsFormat format)
        {
            bool flag = !base.ValidateFormat(format, FormatUsage.Render);

            if (!flag)
            {
                CustomRenderTexture.Internal_CreateCustomRenderTexture(this);
                this.width          = width;
                this.height         = height;
                base.graphicsFormat = format;
                base.SetSRGBReadWrite(GraphicsFormatUtility.IsSRGBFormat(format));
            }
        }