Skip to main content

PhysicalDeviceShaderCorePropertiesAMD

Struct PhysicalDeviceShaderCorePropertiesAMD 

Source
pub struct PhysicalDeviceShaderCorePropertiesAMD<'a> {
Show 16 fields pub s_type: StructureType, pub p_next: *mut c_void, pub shader_engine_count: u32, pub shader_arrays_per_engine_count: u32, pub compute_units_per_shader_array: u32, pub simd_per_compute_unit: u32, pub wavefronts_per_simd: u32, pub wavefront_size: u32, pub sgprs_per_simd: u32, pub min_sgpr_allocation: u32, pub max_sgpr_allocation: u32, pub sgpr_allocation_granularity: u32, pub vgprs_per_simd: u32, pub min_vgpr_allocation: u32, pub max_vgpr_allocation: u32, pub vgpr_allocation_granularity: u32, /* private fields */
}
Expand description

Native structure VkPhysicalDeviceShaderCorePropertiesAMD.

Khronos reference: VkPhysicalDeviceShaderCorePropertiesAMD

Fields§

§s_type: StructureType

Native field sType.

§p_next: *mut c_void

Native field pNext.

§shader_engine_count: u32

Native field shaderEngineCount.

§shader_arrays_per_engine_count: u32

Native field shaderArraysPerEngineCount.

§compute_units_per_shader_array: u32

Native field computeUnitsPerShaderArray.

§simd_per_compute_unit: u32

Native field simdPerComputeUnit.

§wavefronts_per_simd: u32

Native field wavefrontsPerSimd.

§wavefront_size: u32

Native field wavefrontSize.

§sgprs_per_simd: u32

Native field sgprsPerSimd.

§min_sgpr_allocation: u32

Native field minSgprAllocation.

§max_sgpr_allocation: u32

Native field maxSgprAllocation.

§sgpr_allocation_granularity: u32

Native field sgprAllocationGranularity.

§vgprs_per_simd: u32

Native field vgprsPerSimd.

§min_vgpr_allocation: u32

Native field minVgprAllocation.

§max_vgpr_allocation: u32

Native field maxVgprAllocation.

§vgpr_allocation_granularity: u32

Native field vgprAllocationGranularity.

Implementations§

Source§

impl<'a> PhysicalDeviceShaderCorePropertiesAMD<'a>

Source

pub fn new() -> Self

Construct the record with its canonical sType tag and default native state.

Source

pub fn set_shader_engine_count(self, value: u32) -> Self

Set native field shaderEngineCount without native effects.

Source

pub fn set_shader_arrays_per_engine_count(self, value: u32) -> Self

Set native field shaderArraysPerEngineCount without native effects.

Source

pub fn set_compute_units_per_shader_array(self, value: u32) -> Self

Set native field computeUnitsPerShaderArray without native effects.

Source

pub fn set_simd_per_compute_unit(self, value: u32) -> Self

Set native field simdPerComputeUnit without native effects.

Source

pub fn set_wavefronts_per_simd(self, value: u32) -> Self

Set native field wavefrontsPerSimd without native effects.

Source

pub fn set_wavefront_size(self, value: u32) -> Self

Set native field wavefrontSize without native effects.

Source

pub fn set_sgprs_per_simd(self, value: u32) -> Self

Set native field sgprsPerSimd without native effects.

Source

pub fn set_min_sgpr_allocation(self, value: u32) -> Self

Set native field minSgprAllocation without native effects.

Source

pub fn set_max_sgpr_allocation(self, value: u32) -> Self

Set native field maxSgprAllocation without native effects.

Source

pub fn set_sgpr_allocation_granularity(self, value: u32) -> Self

Set native field sgprAllocationGranularity without native effects.

Source

pub fn set_vgprs_per_simd(self, value: u32) -> Self

Set native field vgprsPerSimd without native effects.

Source

pub fn set_min_vgpr_allocation(self, value: u32) -> Self

Set native field minVgprAllocation without native effects.

Source

pub fn set_max_vgpr_allocation(self, value: u32) -> Self

Set native field maxVgprAllocation without native effects.

Source

pub fn set_vgpr_allocation_granularity(self, value: u32) -> Self

Set native field vgprAllocationGranularity without native effects.

Source

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 PhysicalDeviceShaderCorePropertiesAMD<'a>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'a, 'root> Extends<PhysicalDeviceProperties2<'root>> for PhysicalDeviceShaderCorePropertiesAMD<'a>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.