pub struct PipelineShaderStageCreateInfo<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub flags: PipelineShaderStageCreateFlags,
pub stage: ShaderStageFlagBits,
pub module: ShaderModule,
pub p_name: *const c_char,
pub p_specialization_info: *const SpecializationInfo<'a>,
/* private fields */
}Expand description
Native structure VkPipelineShaderStageCreateInfo.
Fields§
§s_type: StructureTypeNative field sType.
p_next: *const c_voidNative field pNext.
flags: PipelineShaderStageCreateFlagsNative field flags.
stage: ShaderStageFlagBitsNative field stage.
module: ShaderModuleNative field module.
p_name: *const c_charNative field pName.
p_specialization_info: *const SpecializationInfo<'a>Native field pSpecializationInfo.
Implementations§
Source§impl<'a> PipelineShaderStageCreateInfo<'a>
impl<'a> PipelineShaderStageCreateInfo<'a>
Sourcepub fn new() -> Self
pub fn new() -> Self
Construct the record with its canonical sType tag and default native state.
Sourcepub fn set_flags(self, value: PipelineShaderStageCreateFlags) -> Self
pub fn set_flags(self, value: PipelineShaderStageCreateFlags) -> Self
Set native field flags without native effects.
Sourcepub fn set_stage(self, value: ShaderStageFlagBits) -> Self
pub fn set_stage(self, value: ShaderStageFlagBits) -> Self
Set native field stage without native effects.
Sourcepub fn set_module(self, value: ShaderModule) -> Self
pub fn set_module(self, value: ShaderModule) -> Self
Set native field module without native effects.
Sourcepub fn set_specialization_info(self, value: &'a SpecializationInfo<'a>) -> Self
pub fn set_specialization_info(self, value: &'a SpecializationInfo<'a>) -> Self
Set native field pSpecializationInfo without native effects.
Sourcepub fn push_next<T: Extends<Self>>(
self,
next: &'a mut T,
) -> Result<Self, ConstructionError>
pub fn push_next<T: Extends<Self>>( self, next: &'a mut T, ) -> Result<Self, ConstructionError>
Prepend one registry-compatible node, retaining its exclusive borrow.
The node must have a null p_next and both headers must have canonical tags.
Existing links are never traversed and remain written after the borrow ends.
Type compatibility does not establish enabled extensions or Vulkan valid usage.
§Errors
Returns a construction error for a changed structure tag or already-linked node.
Trait Implementations§
Source§impl<'a> Default for PipelineShaderStageCreateInfo<'a>
impl<'a> Default for PipelineShaderStageCreateInfo<'a>
impl<'a, 'root> Extends<PipelineShaderStageCreateInfo<'root>> for ShaderModuleCreateInfo<'a>
impl<'a, 'root> Extends<PipelineShaderStageCreateInfo<'root>> for ValidationFeaturesEXT<'a>
impl<'a, 'root> Extends<PipelineShaderStageCreateInfo<'root>> for ShaderModuleValidationCacheCreateInfoEXT<'a>
impl<'a, 'root> Extends<PipelineShaderStageCreateInfo<'root>> for DebugUtilsObjectNameInfoEXT<'a>
impl<'a, 'root> Extends<PipelineShaderStageCreateInfo<'root>> for PipelineShaderStageRequiredSubgroupSizeCreateInfo<'a>
impl<'a, 'root> Extends<PipelineShaderStageCreateInfo<'root>> for PipelineShaderStageModuleIdentifierCreateInfoEXT<'a>
impl<'a, 'root> Extends<PipelineShaderStageCreateInfo<'root>> for PipelineRobustnessCreateInfo<'a>
impl<'a, 'root> Extends<PipelineShaderStageCreateInfo<'root>> for PipelineShaderStageNodeCreateInfoAMDX<'a>
provisional only.