public DepthStencilopDesc ( StencilOp?stencilFailOp = null, StencilOp?stencilDepthFailOp = null, StencilOp?stencilPassOp = null, ComparisonFunc?stencilFunc = null ) : this() { if (stencilFailOp is not null) { StencilFailOp = stencilFailOp.Value; } if (stencilDepthFailOp is not null) { StencilDepthFailOp = stencilDepthFailOp.Value; } if (stencilPassOp is not null) { StencilPassOp = stencilPassOp.Value; } if (stencilFunc is not null) { StencilFunc = stencilFunc.Value; } }
public SamplerDesc ( Filter?filter = null, TextureAddressMode?addressU = null, TextureAddressMode?addressV = null, TextureAddressMode?addressW = null, float?mipLODBias = null, uint?maxAnisotropy = null, ComparisonFunc?comparisonFunc = null, float?minLOD = null, float?maxLOD = null ) : this() { if (filter is not null) { Filter = filter.Value; } if (addressU is not null) { AddressU = addressU.Value; } if (addressV is not null) { AddressV = addressV.Value; } if (addressW is not null) { AddressW = addressW.Value; } if (mipLODBias is not null) { MipLODBias = mipLODBias.Value; } if (maxAnisotropy is not null) { MaxAnisotropy = maxAnisotropy.Value; } if (comparisonFunc is not null) { ComparisonFunc = comparisonFunc.Value; } if (minLOD is not null) { MinLOD = minLOD.Value; } if (maxLOD is not null) { MaxLOD = maxLOD.Value; } }
public DepthStencilDesc1 ( int?depthEnable = null, DepthWriteMask?depthWriteMask = null, ComparisonFunc?depthFunc = null, int?stencilEnable = null, byte?stencilReadMask = null, byte?stencilWriteMask = null, DepthStencilopDesc?frontFace = null, DepthStencilopDesc?backFace = null, int?depthBoundsTestEnable = null ) : this() { if (depthEnable is not null) { DepthEnable = depthEnable.Value; } if (depthWriteMask is not null) { DepthWriteMask = depthWriteMask.Value; } if (depthFunc is not null) { DepthFunc = depthFunc.Value; } if (stencilEnable is not null) { StencilEnable = stencilEnable.Value; } if (stencilReadMask is not null) { StencilReadMask = stencilReadMask.Value; } if (stencilWriteMask is not null) { StencilWriteMask = stencilWriteMask.Value; } if (frontFace is not null) { FrontFace = frontFace.Value; } if (backFace is not null) { BackFace = backFace.Value; } if (depthBoundsTestEnable is not null) { DepthBoundsTestEnable = depthBoundsTestEnable.Value; } }
public StaticSamplerDesc ( Filter?filter = null, TextureAddressMode?addressU = null, TextureAddressMode?addressV = null, TextureAddressMode?addressW = null, float?mipLODBias = null, uint?maxAnisotropy = null, ComparisonFunc?comparisonFunc = null, StaticBorderColor?borderColor = null, float?minLOD = null, float?maxLOD = null, uint?shaderRegister = null, uint?registerSpace = null, ShaderVisibility?shaderVisibility = null ) : this() { if (filter is not null) { Filter = filter.Value; } if (addressU is not null) { AddressU = addressU.Value; } if (addressV is not null) { AddressV = addressV.Value; } if (addressW is not null) { AddressW = addressW.Value; } if (mipLODBias is not null) { MipLODBias = mipLODBias.Value; } if (maxAnisotropy is not null) { MaxAnisotropy = maxAnisotropy.Value; } if (comparisonFunc is not null) { ComparisonFunc = comparisonFunc.Value; } if (borderColor is not null) { BorderColor = borderColor.Value; } if (minLOD is not null) { MinLOD = minLOD.Value; } if (maxLOD is not null) { MaxLOD = maxLOD.Value; } if (shaderRegister is not null) { ShaderRegister = shaderRegister.Value; } if (registerSpace is not null) { RegisterSpace = registerSpace.Value; } if (shaderVisibility is not null) { ShaderVisibility = shaderVisibility.Value; } }