Struct wgpu_hal::vulkan::PrivateCapabilities

source ·
struct PrivateCapabilities {
Show 15 fields flip_y_requires_shift: bool, imageless_framebuffers: bool, image_view_usage: bool, timeline_semaphores: bool, texture_d24: bool, texture_d24_s8: bool, texture_s8: bool, can_present: bool, non_coherent_map_mask: BufferAddress, robust_buffer_access: bool, robust_image_access: bool, robust_buffer_access2: bool, robust_image_access2: bool, zero_initialize_workgroup_memory: bool, image_format_list: bool,
}
Expand description

Set of internal capabilities, which don’t show up in the exposed device geometry, but affect the code paths taken internally.

Fields§

§flip_y_requires_shift: bool

Y-flipping is implemented with either VK_AMD_negative_viewport_height or VK_KHR_maintenance1/1.1+. The AMD extension for negative viewport height does not require a Y shift.

This flag is true if the device has VK_KHR_maintenance1/1.1+ and false otherwise (i.e. in the case of VK_AMD_negative_viewport_height).

§imageless_framebuffers: bool§image_view_usage: bool§timeline_semaphores: bool§texture_d24: bool§texture_d24_s8: bool§texture_s8: bool§can_present: bool

Ability to present contents to any screen. Only needed to work around broken platform configurations.

§non_coherent_map_mask: BufferAddress§robust_buffer_access: bool

True if this adapter advertises the robustBufferAccess feature.

Note that Vulkan’s robustBufferAccess is not sufficient to implement wgpu_hal’s guarantee that shaders will not access buffer contents via a given bindgroup binding outside that binding’s accessible region. Enabling robustBufferAccess does ensure that out-of-bounds reads and writes are not undefined behavior (that’s good), but still permits out-of-bounds reads to return data from anywhere within the buffer, not just the accessible region.

§robust_image_access: bool§robust_buffer_access2: bool

True if this adapter supports the VK_EXT_robustness2 extension’s robustBufferAccess2 feature.

This is sufficient to implement wgpu_hal’s required bounds-checking of shader accesses to buffer contents. If this feature is not available, this backend must have Naga inject bounds checks in the generated SPIR-V.

§robust_image_access2: bool§zero_initialize_workgroup_memory: bool§image_format_list: bool

Implementations§

Trait Implementations§

source§

impl Clone for PrivateCapabilities

source§

fn clone(&self) -> PrivateCapabilities

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PrivateCapabilities

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> Downcast<T> for T

source§

fn downcast(&self) -> &T

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> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.
source§

impl<T> Upcast<T> for T

source§

fn upcast(&self) -> Option<&T>

source§

impl<T> WasmNotSend for T
where T: Send,

source§

impl<T> WasmNotSendSync for T

source§

impl<T> WasmNotSync for T
where T: Sync,