Beispiel #1
0
        public RenderTargetViewDescUnion
        (
            BufferRtv?buffer                 = null,
            Tex1DRtv?texture1D               = null,
            Tex1DArrayRtv?texture1DArray     = null,
            Tex2DRtv?texture2D               = null,
            Tex2DArrayRtv?texture2DArray     = null,
            Tex2DmsRtv?texture2DMS           = null,
            Tex2DmsArrayRtv?texture2DMSArray = null,
            Tex3DRtv?texture3D               = null
        ) : this()
        {
            if (buffer is not null)
            {
                Buffer = buffer.Value;
            }

            if (texture1D is not null)
            {
                Texture1D = texture1D.Value;
            }

            if (texture1DArray is not null)
            {
                Texture1DArray = texture1DArray.Value;
            }

            if (texture2D is not null)
            {
                Texture2D = texture2D.Value;
            }

            if (texture2DArray is not null)
            {
                Texture2DArray = texture2DArray.Value;
            }

            if (texture2DMS is not null)
            {
                Texture2DMS = texture2DMS.Value;
            }

            if (texture2DMSArray is not null)
            {
                Texture2DMSArray = texture2DMSArray.Value;
            }

            if (texture3D is not null)
            {
                Texture3D = texture3D.Value;
            }
        }
Beispiel #2
0
        public AnonymousRecordD3d12L3259C5
        (
            BufferRtv?buffer                 = null,
            Tex1DRtv?texture1D               = null,
            Tex1DArrayRtv?texture1DArray     = null,
            Tex2DRtv?texture2D               = null,
            Tex2DArrayRtv?texture2DArray     = null,
            Tex2DmsRtv?texture2DMS           = null,
            Tex2DmsArrayRtv?texture2DMSArray = null,
            Tex3DRtv?texture3D               = null
        ) : this()
        {
            if (buffer is not null)
            {
                Buffer = buffer.Value;
            }

            if (texture1D is not null)
            {
                Texture1D = texture1D.Value;
            }

            if (texture1DArray is not null)
            {
                Texture1DArray = texture1DArray.Value;
            }

            if (texture2D is not null)
            {
                Texture2D = texture2D.Value;
            }

            if (texture2DArray is not null)
            {
                Texture2DArray = texture2DArray.Value;
            }

            if (texture2DMS is not null)
            {
                Texture2DMS = texture2DMS.Value;
            }

            if (texture2DMSArray is not null)
            {
                Texture2DMSArray = texture2DMSArray.Value;
            }

            if (texture3D is not null)
            {
                Texture3D = texture3D.Value;
            }
        }
        public CD3D11RenderTargetViewDesc
        (
            Silk.NET.DXGI.Format?format         = null,
            RtvDimension?viewDimension          = null,
            RenderTargetViewDescUnion?anonymous = null,
            BufferRtv?buffer                 = null,
            Tex1DRtv?texture1D               = null,
            Tex1DArrayRtv?texture1DArray     = null,
            Tex2DRtv?texture2D               = null,
            Tex2DArrayRtv?texture2DArray     = null,
            Tex2DmsRtv?texture2DMS           = null,
            Tex2DmsArrayRtv?texture2DMSArray = null,
            Tex3DRtv?texture3D               = null
        ) : this()
        {
            if (format is not null)
            {
                Format = format.Value;
            }

            if (viewDimension is not null)
            {
                ViewDimension = viewDimension.Value;
            }

            if (anonymous is not null)
            {
                Anonymous = anonymous.Value;
            }

            if (buffer is not null)
            {
                Buffer = buffer.Value;
            }

            if (texture1D is not null)
            {
                Texture1D = texture1D.Value;
            }

            if (texture1DArray is not null)
            {
                Texture1DArray = texture1DArray.Value;
            }

            if (texture2D is not null)
            {
                Texture2D = texture2D.Value;
            }

            if (texture2DArray is not null)
            {
                Texture2DArray = texture2DArray.Value;
            }

            if (texture2DMS is not null)
            {
                Texture2DMS = texture2DMS.Value;
            }

            if (texture2DMSArray is not null)
            {
                Texture2DMSArray = texture2DMSArray.Value;
            }

            if (texture3D is not null)
            {
                Texture3D = texture3D.Value;
            }
        }