示例#1
0
        public ShaderResourceViewDesc1Union
        (
            BufferSrv?buffer                 = null,
            Tex1DSrv?texture1D               = null,
            Tex1DArraySrv?texture1DArray     = null,
            Tex2DSrv1?texture2D              = null,
            Tex2DArraySrv1?texture2DArray    = null,
            Tex2DmsSrv?texture2DMS           = null,
            Tex2DmsArraySrv?texture2DMSArray = null,
            Tex3DSrv?texture3D               = null,
            TexcubeSrv?textureCube           = null,
            TexcubeArraySrv?textureCubeArray = null,
            BufferexSrv?bufferEx             = 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;
            }

            if (textureCube is not null)
            {
                TextureCube = textureCube.Value;
            }

            if (textureCubeArray is not null)
            {
                TextureCubeArray = textureCubeArray.Value;
            }

            if (bufferEx is not null)
            {
                BufferEx = bufferEx.Value;
            }
        }
示例#2
0
        public ShaderResourceViewDesc
        (
            Silk.NET.DXGI.Format?format = null,
            Silk.NET.Core.Native.D3DSrvDimension?viewDimension = null,
            ShaderResourceViewDescUnion?anonymous = null,
            BufferSrv?buffer                 = null,
            Tex1DSrv?texture1D               = null,
            Tex1DArraySrv?texture1DArray     = null,
            Tex2DSrv?texture2D               = null,
            Tex2DArraySrv?texture2DArray     = null,
            Tex2DmsSrv?texture2DMS           = null,
            Tex2DmsArraySrv?texture2DMSArray = null,
            Tex3DSrv?texture3D               = null,
            TexcubeSrv?textureCube           = null,
            TexcubeArraySrv?textureCubeArray = null,
            BufferexSrv?bufferEx             = 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;
            }

            if (textureCube is not null)
            {
                TextureCube = textureCube.Value;
            }

            if (textureCubeArray is not null)
            {
                TextureCubeArray = textureCubeArray.Value;
            }

            if (bufferEx is not null)
            {
                BufferEx = bufferEx.Value;
            }
        }
        public AnonymousRecordD3d113L886C5
        (
            BufferSrv?buffer                 = null,
            Tex1DSrv?texture1D               = null,
            Tex1DArraySrv?texture1DArray     = null,
            Tex2DSrv1?texture2D              = null,
            Tex2DArraySrv1?texture2DArray    = null,
            Tex2DmsSrv?texture2DMS           = null,
            Tex2DmsArraySrv?texture2DMSArray = null,
            Tex3DSrv?texture3D               = null,
            TexcubeSrv?textureCube           = null,
            TexcubeArraySrv?textureCubeArray = null,
            BufferexSrv?bufferEx             = 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;
            }

            if (textureCube is not null)
            {
                TextureCube = textureCube.Value;
            }

            if (textureCubeArray is not null)
            {
                TextureCubeArray = textureCubeArray.Value;
            }

            if (bufferEx is not null)
            {
                BufferEx = bufferEx.Value;
            }
        }
示例#4
0
        public AnonymousRecordD3d12L2965C5
        (
            BufferSrv?buffer                 = null,
            Tex1DSrv?texture1D               = null,
            Tex1DArraySrv?texture1DArray     = null,
            Tex2DSrv?texture2D               = null,
            Tex2DArraySrv?texture2DArray     = null,
            Tex2DmsSrv?texture2DMS           = null,
            Tex2DmsArraySrv?texture2DMSArray = null,
            Tex3DSrv?texture3D               = null,
            TexcubeSrv?textureCube           = null,
            TexcubeArraySrv?textureCubeArray = null,
            RaytracingAccelerationStructureSrv?raytracingAccelerationStructure = 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;
            }

            if (textureCube is not null)
            {
                TextureCube = textureCube.Value;
            }

            if (textureCubeArray is not null)
            {
                TextureCubeArray = textureCubeArray.Value;
            }

            if (raytracingAccelerationStructure is not null)
            {
                RaytracingAccelerationStructure = raytracingAccelerationStructure.Value;
            }
        }
示例#5
0
        public ShaderResourceViewDesc
        (
            Silk.NET.DXGI.Format?format           = null,
            SrvDimension?viewDimension            = null,
            uint?shader4ComponentMapping          = null,
            ShaderResourceViewDescUnion?anonymous = null,
            BufferSrv?buffer                 = null,
            Tex1DSrv?texture1D               = null,
            Tex1DArraySrv?texture1DArray     = null,
            Tex2DSrv?texture2D               = null,
            Tex2DArraySrv?texture2DArray     = null,
            Tex2DmsSrv?texture2DMS           = null,
            Tex2DmsArraySrv?texture2DMSArray = null,
            Tex3DSrv?texture3D               = null,
            TexcubeSrv?textureCube           = null,
            TexcubeArraySrv?textureCubeArray = null,
            RaytracingAccelerationStructureSrv?raytracingAccelerationStructure = null
        ) : this()
        {
            if (format is not null)
            {
                Format = format.Value;
            }

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

            if (shader4ComponentMapping is not null)
            {
                Shader4ComponentMapping = shader4ComponentMapping.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;
            }

            if (textureCube is not null)
            {
                TextureCube = textureCube.Value;
            }

            if (textureCubeArray is not null)
            {
                TextureCubeArray = textureCubeArray.Value;
            }

            if (raytracingAccelerationStructure is not null)
            {
                RaytracingAccelerationStructure = raytracingAccelerationStructure.Value;
            }
        }
        public ShaderResourceViewDescUnion
        (
            BufferSrv?buffer                 = null,
            Tex1DSrv?texture1D               = null,
            Tex1DArraySrv?texture1DArray     = null,
            Tex2DSrv?texture2D               = null,
            Tex2DArraySrv?texture2DArray     = null,
            Tex2DmsSrv?texture2DMS           = null,
            Tex2DmsArraySrv?texture2DMSArray = null,
            Tex3DSrv?texture3D               = null,
            TexcubeSrv?textureCube           = null,
            TexcubeArraySrv?textureCubeArray = null,
            RaytracingAccelerationStructureSrv?raytracingAccelerationStructure = 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;
            }

            if (textureCube is not null)
            {
                TextureCube = textureCube.Value;
            }

            if (textureCubeArray is not null)
            {
                TextureCubeArray = textureCubeArray.Value;
            }

            if (raytracingAccelerationStructure is not null)
            {
                RaytracingAccelerationStructure = raytracingAccelerationStructure.Value;
            }
        }