コード例 #1
0
        public SurfaceDesc
        (
            uint?width  = null,
            uint?height = null,
            Silk.NET.DXGI.Format?format = null,
            SampleDesc?sampleDesc       = null
        ) : this()
        {
            if (width is not null)
            {
                Width = width.Value;
            }

            if (height is not null)
            {
                Height = height.Value;
            }

            if (format is not null)
            {
                Format = format.Value;
            }

            if (sampleDesc is not null)
            {
                SampleDesc = sampleDesc.Value;
            }
        }
        public VideoEncoderResolveMetadataInputArguments
        (
            VideoEncoderCodec?encoderCodec          = null,
            VideoEncoderProfileDesc?encoderProfile  = null,
            Silk.NET.DXGI.Format?encoderInputFormat = null,
            VideoEncoderPictureResolutionDesc?encodedPictureEffectiveResolution = null,
            VideoEncoderEncodeOperationMetadataBuffer?hWLayoutMetadata          = null
        ) : this()
        {
            if (encoderCodec is not null)
            {
                EncoderCodec = encoderCodec.Value;
            }

            if (encoderProfile is not null)
            {
                EncoderProfile = encoderProfile.Value;
            }

            if (encoderInputFormat is not null)
            {
                EncoderInputFormat = encoderInputFormat.Value;
            }

            if (encodedPictureEffectiveResolution is not null)
            {
                EncodedPictureEffectiveResolution = encodedPictureEffectiveResolution.Value;
            }

            if (hWLayoutMetadata is not null)
            {
                HWLayoutMetadata = hWLayoutMetadata.Value;
            }
        }
コード例 #3
0
        public VideoProcessorStreamBehaviorHint
        (
            int?enable  = null,
            uint?width  = null,
            uint?height = null,
            Silk.NET.DXGI.Format?format = null
        ) : this()
        {
            if (enable is not null)
            {
                Enable = enable.Value;
            }

            if (width is not null)
            {
                Width = width.Value;
            }

            if (height is not null)
            {
                Height = height.Value;
            }

            if (format is not null)
            {
                Format = format.Value;
            }
        }
コード例 #4
0
        public FeatureDataMultisampleQualityLevels
        (
            Silk.NET.DXGI.Format?format        = null,
            uint?sampleCount                   = null,
            MultisampleQualityLevelFlags?flags = null,
            uint?numQualityLevels              = null
        ) : this()
        {
            if (format is not null)
            {
                Format = format.Value;
            }

            if (sampleCount is not null)
            {
                SampleCount = sampleCount.Value;
            }

            if (flags is not null)
            {
                Flags = flags.Value;
            }

            if (numQualityLevels is not null)
            {
                NumQualityLevels = numQualityLevels.Value;
            }
        }
コード例 #5
0
        public SubresourceFootprint
        (
            Silk.NET.DXGI.Format?format = null,
            uint?width    = null,
            uint?height   = null,
            uint?depth    = null,
            uint?rowPitch = null
        ) : this()
        {
            if (format is not null)
            {
                Format = format.Value;
            }

            if (width is not null)
            {
                Width = width.Value;
            }

            if (height is not null)
            {
                Height = height.Value;
            }

            if (depth is not null)
            {
                Depth = depth.Value;
            }

            if (rowPitch is not null)
            {
                RowPitch = rowPitch.Value;
            }
        }
コード例 #6
0
        public FeatureDataVideoMotionEstimator
        (
            uint?nodeIndex = null,
            Silk.NET.DXGI.Format?inputFormat = null,
            VideoMotionEstimatorSearchBlockSizeFlags?blockSizeFlags = null,
            VideoMotionEstimatorVectorPrecisionFlags?precisionFlags = null,
            VideoSizeRange?sizeRange = null
        ) : this()
        {
            if (nodeIndex is not null)
            {
                NodeIndex = nodeIndex.Value;
            }

            if (inputFormat is not null)
            {
                InputFormat = inputFormat.Value;
            }

            if (blockSizeFlags is not null)
            {
                BlockSizeFlags = blockSizeFlags.Value;
            }

            if (precisionFlags is not null)
            {
                PrecisionFlags = precisionFlags.Value;
            }

            if (sizeRange is not null)
            {
                SizeRange = sizeRange.Value;
            }
        }
コード例 #7
0
        public VideoMotionEstimatorDesc
        (
            uint?nodeMask = null,
            Silk.NET.DXGI.Format?inputFormat = null,
            VideoMotionEstimatorSearchBlockSize?blockSize = null,
            VideoMotionEstimatorVectorPrecision?precision = null,
            VideoSizeRange?sizeRange = null
        ) : this()
        {
            if (nodeMask is not null)
            {
                NodeMask = nodeMask.Value;
            }

            if (inputFormat is not null)
            {
                InputFormat = inputFormat.Value;
            }

            if (blockSize is not null)
            {
                BlockSize = blockSize.Value;
            }

            if (precision is not null)
            {
                Precision = precision.Value;
            }

            if (sizeRange is not null)
            {
                SizeRange = sizeRange.Value;
            }
        }
コード例 #8
0
        public VideoSampleDesc
        (
            uint?width  = null,
            uint?height = null,
            Silk.NET.DXGI.Format?format             = null,
            Silk.NET.DXGI.ColorSpaceType?colorSpace = null
        ) : this()
        {
            if (width is not null)
            {
                Width = width.Value;
            }

            if (height is not null)
            {
                Height = height.Value;
            }

            if (format is not null)
            {
                Format = format.Value;
            }

            if (colorSpace is not null)
            {
                ColorSpace = colorSpace.Value;
            }
        }
コード例 #9
0
        public VideoDecoderDesc
        (
            Guid?guid         = null,
            uint?sampleWidth  = null,
            uint?sampleHeight = null,
            Silk.NET.DXGI.Format?outputFormat = null
        ) : this()
        {
            if (guid is not null)
            {
                Guid = guid.Value;
            }

            if (sampleWidth is not null)
            {
                SampleWidth = sampleWidth.Value;
            }

            if (sampleHeight is not null)
            {
                SampleHeight = sampleHeight.Value;
            }

            if (outputFormat is not null)
            {
                OutputFormat = outputFormat.Value;
            }
        }
コード例 #10
0
        public FeatureDataVideoEncoderInputFormat
        (
            uint?nodeIndex                  = null,
            VideoEncoderCodec?codec         = null,
            VideoEncoderProfileDesc?profile = null,
            Silk.NET.DXGI.Format?format     = null,
            int?isSupported                 = null
        ) : this()
        {
            if (nodeIndex is not null)
            {
                NodeIndex = nodeIndex.Value;
            }

            if (codec is not null)
            {
                Codec = codec.Value;
            }

            if (profile is not null)
            {
                Profile = profile.Value;
            }

            if (format is not null)
            {
                Format = format.Value;
            }

            if (isSupported is not null)
            {
                IsSupported = isSupported.Value;
            }
        }
コード例 #11
0
        public CD3D11Texture3DDesc
        (
            uint?width     = null,
            uint?height    = null,
            uint?depth     = null,
            uint?mipLevels = null,
            Silk.NET.DXGI.Format?format = null,
            Usage?usage         = null,
            uint?bindFlags      = null,
            uint?cPUAccessFlags = null,
            uint?miscFlags      = null
        ) : this()
        {
            if (width is not null)
            {
                Width = width.Value;
            }

            if (height is not null)
            {
                Height = height.Value;
            }

            if (depth is not null)
            {
                Depth = depth.Value;
            }

            if (mipLevels is not null)
            {
                MipLevels = mipLevels.Value;
            }

            if (format is not null)
            {
                Format = format.Value;
            }

            if (usage is not null)
            {
                Usage = usage.Value;
            }

            if (bindFlags is not null)
            {
                BindFlags = bindFlags.Value;
            }

            if (cPUAccessFlags is not null)
            {
                CPUAccessFlags = cPUAccessFlags.Value;
            }

            if (miscFlags is not null)
            {
                MiscFlags = miscFlags.Value;
            }
        }
コード例 #12
0
        public FeatureDataVideoEncoderResourceRequirements
        (
            uint?nodeIndex                   = null,
            VideoEncoderCodec?codec          = null,
            VideoEncoderProfileDesc?profile  = null,
            Silk.NET.DXGI.Format?inputFormat = null,
            VideoEncoderPictureResolutionDesc?pictureTargetResolution = null,
            int?isSupported = null,
            uint?compressedBitstreamBufferAccessAlignment = null,
            uint?encoderMetadataBufferAccessAlignment     = null,
            uint?maxEncoderOutputMetadataBufferSize       = null
        ) : this()
        {
            if (nodeIndex is not null)
            {
                NodeIndex = nodeIndex.Value;
            }

            if (codec is not null)
            {
                Codec = codec.Value;
            }

            if (profile is not null)
            {
                Profile = profile.Value;
            }

            if (inputFormat is not null)
            {
                InputFormat = inputFormat.Value;
            }

            if (pictureTargetResolution is not null)
            {
                PictureTargetResolution = pictureTargetResolution.Value;
            }

            if (isSupported is not null)
            {
                IsSupported = isSupported.Value;
            }

            if (compressedBitstreamBufferAccessAlignment is not null)
            {
                CompressedBitstreamBufferAccessAlignment = compressedBitstreamBufferAccessAlignment.Value;
            }

            if (encoderMetadataBufferAccessAlignment is not null)
            {
                EncoderMetadataBufferAccessAlignment = encoderMetadataBufferAccessAlignment.Value;
            }

            if (maxEncoderOutputMetadataBufferSize is not null)
            {
                MaxEncoderOutputMetadataBufferSize = maxEncoderOutputMetadataBufferSize.Value;
            }
        }
コード例 #13
0
        public UnorderedAccessViewDesc
        (
            Silk.NET.DXGI.Format?format            = null,
            UavDimension?viewDimension             = null,
            UnorderedAccessViewDescUnion?anonymous = null,
            BufferUav?buffer             = null,
            Tex1DUav?texture1D           = null,
            Tex1DArrayUav?texture1DArray = null,
            Tex2DUav?texture2D           = null,
            Tex2DArrayUav?texture2DArray = null,
            Tex3DUav?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 (texture3D is not null)
            {
                Texture3D = texture3D.Value;
            }
        }
コード例 #14
0
ファイル: ClearValue.gen.cs プロジェクト: storm32600/Silk.NET
 public ClearValue
 (
     Silk.NET.DXGI.Format?format = null
 ) : this()
 {
     if (format is not null)
     {
         Format = format.Value;
     }
 }
コード例 #15
0
        public Texture1DDesc
        (
            uint?width     = null,
            uint?mipLevels = null,
            uint?arraySize = null,
            Silk.NET.DXGI.Format?format = null,
            Usage?usage         = null,
            uint?bindFlags      = null,
            uint?cPUAccessFlags = null,
            uint?miscFlags      = null
        ) : this()
        {
            if (width is not null)
            {
                Width = width.Value;
            }

            if (mipLevels is not null)
            {
                MipLevels = mipLevels.Value;
            }

            if (arraySize is not null)
            {
                ArraySize = arraySize.Value;
            }

            if (format is not null)
            {
                Format = format.Value;
            }

            if (usage is not null)
            {
                Usage = usage.Value;
            }

            if (bindFlags is not null)
            {
                BindFlags = bindFlags.Value;
            }

            if (cPUAccessFlags is not null)
            {
                CPUAccessFlags = cPUAccessFlags.Value;
            }

            if (miscFlags is not null)
            {
                MiscFlags = miscFlags.Value;
            }
        }
コード例 #16
0
        public VideoDecoderHeapDesc
        (
            uint?nodeMask = null,
            VideoDecodeConfiguration?configuration = null,
            uint?decodeWidth                 = null,
            uint?decodeHeight                = null,
            Silk.NET.DXGI.Format?format      = null,
            Silk.NET.DXGI.Rational?frameRate = null,
            uint?bitRate = null,
            uint?maxDecodePictureBufferCount = null
        ) : this()
        {
            if (nodeMask is not null)
            {
                NodeMask = nodeMask.Value;
            }

            if (configuration is not null)
            {
                Configuration = configuration.Value;
            }

            if (decodeWidth is not null)
            {
                DecodeWidth = decodeWidth.Value;
            }

            if (decodeHeight is not null)
            {
                DecodeHeight = decodeHeight.Value;
            }

            if (format is not null)
            {
                Format = format.Value;
            }

            if (frameRate is not null)
            {
                FrameRate = frameRate.Value;
            }

            if (bitRate is not null)
            {
                BitRate = bitRate.Value;
            }

            if (maxDecodePictureBufferCount is not null)
            {
                MaxDecodePictureBufferCount = maxDecodePictureBufferCount.Value;
            }
        }
コード例 #17
0
        public FeatureDataVideoDecodeHistogram
        (
            uint?nodeIndex     = null,
            Guid?decodeProfile = null,
            uint?width         = null,
            uint?height        = null,
            Silk.NET.DXGI.Format?decodeFormat             = null,
            VideoDecodeHistogramComponentFlags?components = null,
            uint?binCount        = null,
            uint?counterBitDepth = null
        ) : this()
        {
            if (nodeIndex is not null)
            {
                NodeIndex = nodeIndex.Value;
            }

            if (decodeProfile is not null)
            {
                DecodeProfile = decodeProfile.Value;
            }

            if (width is not null)
            {
                Width = width.Value;
            }

            if (height is not null)
            {
                Height = height.Value;
            }

            if (decodeFormat is not null)
            {
                DecodeFormat = decodeFormat.Value;
            }

            if (components is not null)
            {
                Components = components.Value;
            }

            if (binCount is not null)
            {
                BinCount = binCount.Value;
            }

            if (counterBitDepth is not null)
            {
                CounterBitDepth = counterBitDepth.Value;
            }
        }
コード例 #18
0
        public FeatureDataFormatSupport2
        (
            Silk.NET.DXGI.Format?inFormat = null,
            uint?outFormatSupport2        = null
        ) : this()
        {
            if (inFormat is not null)
            {
                InFormat = inFormat.Value;
            }

            if (outFormatSupport2 is not null)
            {
                OutFormatSupport2 = outFormatSupport2.Value;
            }
        }
コード例 #19
0
        public FeatureDataFormatInfo
        (
            Silk.NET.DXGI.Format?format = null,
            byte?planeCount             = null
        ) : this()
        {
            if (format is not null)
            {
                Format = format.Value;
            }

            if (planeCount is not null)
            {
                PlaneCount = planeCount.Value;
            }
        }
コード例 #20
0
        public CD3D11UnorderedAccessViewDesc
        (
            Silk.NET.DXGI.Format?format = null,
            UavDimension?viewDimension  = null
        ) : this()
        {
            if (format is not null)
            {
                Format = format.Value;
            }

            if (viewDimension is not null)
            {
                ViewDimension = viewDimension.Value;
            }
        }
コード例 #21
0
        public VideoFormat
        (
            Silk.NET.DXGI.Format?format             = null,
            Silk.NET.DXGI.ColorSpaceType?colorSpace = null
        ) : this()
        {
            if (format is not null)
            {
                Format = format.Value;
            }

            if (colorSpace is not null)
            {
                ColorSpace = colorSpace.Value;
            }
        }
コード例 #22
0
        public CD3D11ShaderResourceViewDesc1
        (
            Silk.NET.DXGI.Format?format = null,
            Silk.NET.Core.Native.D3DSrvDimension?viewDimension = null
        ) : this()
        {
            if (format is not null)
            {
                Format = format.Value;
            }

            if (viewDimension is not null)
            {
                ViewDimension = viewDimension.Value;
            }
        }
コード例 #23
0
        public RenderTargetViewDesc
        (
            Silk.NET.DXGI.Format?format = null,
            RtvDimension?viewDimension  = null
        ) : this()
        {
            if (format is not null)
            {
                Format = format.Value;
            }

            if (viewDimension is not null)
            {
                ViewDimension = viewDimension.Value;
            }
        }
コード例 #24
0
        public RaytracingGeometryTrianglesDesc
        (
            ulong?transform3x4 = null,
            Silk.NET.DXGI.Format?indexFormat  = null,
            Silk.NET.DXGI.Format?vertexFormat = null,
            uint?indexCount   = null,
            uint?vertexCount  = null,
            ulong?indexBuffer = null,
            GpuVirtualAddressAndStride?vertexBuffer = null
        ) : this()
        {
            if (transform3x4 is not null)
            {
                Transform3x4 = transform3x4.Value;
            }

            if (indexFormat is not null)
            {
                IndexFormat = indexFormat.Value;
            }

            if (vertexFormat is not null)
            {
                VertexFormat = vertexFormat.Value;
            }

            if (indexCount is not null)
            {
                IndexCount = indexCount.Value;
            }

            if (vertexCount is not null)
            {
                VertexCount = vertexCount.Value;
            }

            if (indexBuffer is not null)
            {
                IndexBuffer = indexBuffer.Value;
            }

            if (vertexBuffer is not null)
            {
                VertexBuffer = vertexBuffer.Value;
            }
        }
        public RenderPassEndingAccessResolveParameters
        (
            ID3D12Resource *pSrcResource = null,
            ID3D12Resource *pDstResource = null,
            uint?subresourceCount        = null,
            RenderPassEndingAccessResolveSubresourceParameters *pSubresourceParameters = null,
            Silk.NET.DXGI.Format?format = null,
            ResolveMode?resolveMode     = null,
            int?preserveResolveSource   = null
        ) : this()
        {
            if (pSrcResource is not null)
            {
                PSrcResource = pSrcResource;
            }

            if (pDstResource is not null)
            {
                PDstResource = pDstResource;
            }

            if (subresourceCount is not null)
            {
                SubresourceCount = subresourceCount.Value;
            }

            if (pSubresourceParameters is not null)
            {
                PSubresourceParameters = pSubresourceParameters;
            }

            if (format is not null)
            {
                Format = format.Value;
            }

            if (resolveMode is not null)
            {
                ResolveMode = resolveMode.Value;
            }

            if (preserveResolveSource is not null)
            {
                PreserveResolveSource = preserveResolveSource.Value;
            }
        }
コード例 #26
0
        public VideoEncoderDesc
        (
            uint?nodeMask                                     = null,
            VideoEncoderFlags?flags                           = null,
            VideoEncoderCodec?encodeCodec                     = null,
            VideoEncoderProfileDesc?encodeProfile             = null,
            Silk.NET.DXGI.Format?inputFormat                  = null,
            VideoEncoderCodecConfiguration?codecConfiguration = null,
            VideoEncoderMotionEstimationPrecisionMode?maxMotionEstimationPrecision = null
        ) : this()
        {
            if (nodeMask is not null)
            {
                NodeMask = nodeMask.Value;
            }

            if (flags is not null)
            {
                Flags = flags.Value;
            }

            if (encodeCodec is not null)
            {
                EncodeCodec = encodeCodec.Value;
            }

            if (encodeProfile is not null)
            {
                EncodeProfile = encodeProfile.Value;
            }

            if (inputFormat is not null)
            {
                InputFormat = inputFormat.Value;
            }

            if (codecConfiguration is not null)
            {
                CodecConfiguration = codecConfiguration.Value;
            }

            if (maxMotionEstimationPrecision is not null)
            {
                MaxMotionEstimationPrecision = maxMotionEstimationPrecision.Value;
            }
        }
コード例 #27
0
        public InputElementDesc
        (
            byte *semanticName          = null,
            uint?semanticIndex          = null,
            Silk.NET.DXGI.Format?format = null,
            uint?inputSlot                     = null,
            uint?alignedByteOffset             = null,
            InputClassification?inputSlotClass = null,
            uint?instanceDataStepRate          = null
        ) : this()
        {
            if (semanticName is not null)
            {
                SemanticName = semanticName;
            }

            if (semanticIndex is not null)
            {
                SemanticIndex = semanticIndex.Value;
            }

            if (format is not null)
            {
                Format = format.Value;
            }

            if (inputSlot is not null)
            {
                InputSlot = inputSlot.Value;
            }

            if (alignedByteOffset is not null)
            {
                AlignedByteOffset = alignedByteOffset.Value;
            }

            if (inputSlotClass is not null)
            {
                InputSlotClass = inputSlotClass.Value;
            }

            if (instanceDataStepRate is not null)
            {
                InstanceDataStepRate = instanceDataStepRate.Value;
            }
        }
コード例 #28
0
        public ModeDesc1
        (
            uint?width                         = null,
            uint?height                        = null,
            Rational?refreshRate               = null,
            Silk.NET.DXGI.Format?format        = null,
            ModeScanlineOrder?scanlineOrdering = null,
            ModeScaling?scaling                = null,
            int?stereo                         = null
        ) : this()
        {
            if (width is not null)
            {
                Width = width.Value;
            }

            if (height is not null)
            {
                Height = height.Value;
            }

            if (refreshRate is not null)
            {
                RefreshRate = refreshRate.Value;
            }

            if (format is not null)
            {
                Format = format.Value;
            }

            if (scanlineOrdering is not null)
            {
                ScanlineOrdering = scanlineOrdering.Value;
            }

            if (scaling is not null)
            {
                Scaling = scaling.Value;
            }

            if (stereo is not null)
            {
                Stereo = stereo.Value;
            }
        }
コード例 #29
0
        public VideoProcessOutputStreamDesc
        (
            Silk.NET.DXGI.Format?format             = null,
            Silk.NET.DXGI.ColorSpaceType?colorSpace = null,
            VideoProcessAlphaFillMode?alphaFillMode = null,
            uint?alphaFillModeSourceStreamIndex     = null,
            Silk.NET.DXGI.Rational?frameRate        = null,
            int?enableStereo = null
        ) : this()
        {
            if (format is not null)
            {
                Format = format.Value;
            }

            if (colorSpace is not null)
            {
                ColorSpace = colorSpace.Value;
            }

            if (alphaFillMode is not null)
            {
                AlphaFillMode = alphaFillMode.Value;
            }

            if (alphaFillModeSourceStreamIndex is not null)
            {
                AlphaFillModeSourceStreamIndex = alphaFillModeSourceStreamIndex.Value;
            }

            if (frameRate is not null)
            {
                FrameRate = frameRate.Value;
            }

            if (enableStereo is not null)
            {
                EnableStereo = enableStereo.Value;
            }
        }
コード例 #30
0
        public ClearValue
        (
            Silk.NET.DXGI.Format?format    = null,
            ClearValueUnion?anonymous      = null,
            DepthStencilValue?depthStencil = null
        ) : this()
        {
            if (format is not null)
            {
                Format = format.Value;
            }

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

            if (depthStencil is not null)
            {
                DepthStencil = depthStencil.Value;
            }
        }