public VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL( VkBool32 shaderIntegerFunctions2 = default ) { sType = TYPE; pNext = null; ShaderIntegerFunctions2 = shaderIntegerFunctions2; }
public VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX( VkBool32 perViewPositionAllComponents = default ) { sType = TYPE; pNext = null; PerViewPositionAllComponents = perViewPositionAllComponents; }
public VkPhysicalDeviceMutableDescriptorTypeFeaturesVALVE( VkBool32 mutableDescriptorType = default ) { sType = TYPE; pNext = null; MutableDescriptorType = mutableDescriptorType; }
public VkPipelineColorBlendAttachmentState(VkBool32 blendEnable, VkBlendFactor srcColorBlendFactor = VkBlendFactor.SrcAlpha, VkBlendFactor dstColorBlendFactor = VkBlendFactor.OneMinusSrcAlpha, VkBlendOp colorBlendOp = VkBlendOp.Add, VkBlendFactor srcAlphaBlendFactor = VkBlendFactor.OneMinusSrcAlpha, VkBlendFactor dstAlphaBlendFactor = VkBlendFactor.Zero, VkBlendOp alphaBlendOp = VkBlendOp.Add, VkColorComponentFlags colorWriteMask = VkColorComponentFlags.R | VkColorComponentFlags.G | VkColorComponentFlags.B | VkColorComponentFlags.A) { this.blendEnable = blendEnable; this._srcColorBlendFactor = (int)srcColorBlendFactor; this._dstColorBlendFactor = (int)dstColorBlendFactor; this._colorBlendOp = (int)colorBlendOp; this._srcAlphaBlendFactor = (int)srcAlphaBlendFactor; this._dstAlphaBlendFactor = (int)dstAlphaBlendFactor; this._alphaBlendOp = (int)alphaBlendOp; this._colorWriteMask = (uint)colorWriteMask; }
/// <summary> /// VkPipelineColorBlendAttachmentState - Structure specifying a pipeline color blend attachment state. /// </summary> /// <param name="colorWriteMask">colorWriteMask is a bitmask of VkColorComponentFlagBits /// specifying which of the R, G, B, and/or A components are enabled for /// writing, as described for the Color Write /// Mask</param> /// <param name="blendEnable">blendEnable controls whether blending is enabled for the /// corresponding color attachment. /// If blending is not enabled, the source fragment’s color for that /// attachment is passed through unmodified</param> public VkPipelineColorBlendAttachmentState(VkColorComponentFlagBits colorWriteMask, VkBool32 blendEnable) { this.alphaBlendOp = 0; this.blendEnable = blendEnable; this.colorBlendOp = 0; this.colorWriteMask = colorWriteMask; this.dstAlphaBlendFactor = 0; this.dstColorBlendFactor = 0; this.srcAlphaBlendFactor = 0; this.srcColorBlendFactor = 0; }