Пример #1
0
        internal TypelessTexture2DAsRenderTarget(TypelessTexture2D texture, PixelFormat fmt, uint mipmapSlice)
        {
            this.texture     = texture;
            this.mipmapSlice = mipmapSlice;
            this.format      = fmt;

            texture.AddRef();
        }
        internal TypelessTexture2DAsDepthStencil(TypelessTexture2D texture, PixelFormat fmt)
        {
            this.texture     = texture;
            this.format      = fmt;
            this.multisample = true;

            texture.AddRef();
        }
Пример #3
0
        internal TypelessTexture2DAsRenderTarget(TypelessTexture2D texture, PixelFormat fmt)
        {
            this.texture     = texture;
            this.format      = fmt;
            this.multisample = true;

            texture.AddRef();
        }
        internal TypelessTexture2DAsDepthStencil(TypelessTexture2D texture, PixelFormat fmt, uint mipmap)
        {
            this.texture = texture;
            this.format  = fmt;
            this.mipmap  = mipmap;

            texture.AddRef();
        }