コード例 #1
0
 public static TemporaryRenderTexture GetTemporary(int width, int height, int depthBuffer, RenderTextureFormat format, bool linear, bool uav, bool mipMaps = false)
 {
     return(RenderTexturesCache.GetCache(width, height, depthBuffer, format, linear, uav, mipMaps).GetTemporary());
 }
コード例 #2
0
        private void RetrieveRenderTexturesSet()
        {
            RenderTextureFormat format = (!this._TwoChannels) ? ((!this._HighPrecision) ? RenderTextureFormat.RGHalf : RenderTextureFormat.RGFloat) : ((!this._HighPrecision) ? RenderTextureFormat.ARGBHalf : RenderTextureFormat.ARGBFloat);

            this._RenderTexturesSet = RenderTexturesCache.GetCache(this._Resolution << 1, this._Resolution << 1, 0, format, true, this._UsesUav, false);
        }