Skip to main content

VmError

Enum VmError 

Source
pub enum VmError {
Show 40 variants MissingMainFunction, UnsupportedRawCode, UnsupportedMainSignature { message: String, }, UnsupportedType { type_name: String, }, UnsupportedStatement { message: String, }, UnsupportedAssignmentTarget { message: String, }, UnsupportedExpression { message: String, }, UnsupportedBufferLayout { message: String, }, UnsupportedDescriptor { slot: ResourceSlot, message: String, }, DescriptorAccessDenied { slot: ResourceSlot, access: &'static str, }, DescriptorTypeMismatch { slot: ResourceSlot, expected: &'static str, found: &'static str, }, UnknownBufferMember { member: String, }, UnboundDescriptor { slot: ResourceSlot, }, MissingPushConstant, MissingMeshOutputs, MissingTaskOutputs, MissingWorkgroupState, UninitializedWorkgroupValue { name: String, }, MissingTaskPayload { name: String, }, TaskPayloadIndexOutOfBounds { name: String, index: usize, count: usize, }, TaskPayloadOutputIndexOutOfBounds { name: String, index: usize, count: usize, }, MeshOutputIndexOutOfBounds { kind: &'static str, index: usize, count: usize, }, MeshOutputCountLimitExceeded { kind: &'static str, requested: u32, limit: u32, }, TaskMeshOutputCountLimitExceeded { requested: u32, limit: u32, }, DivergentWorkgroupBarrier { lane: usize, expected_instruction: usize, found_instruction: Option<usize>, }, MissingSpecialization { name: String, }, InstructionLimitExceeded { limit: usize, }, CallDepthLimitExceeded { limit: usize, }, CallArgumentMismatch { expected: usize, found: usize, }, BufferAccessOutOfBounds { offset: usize, size: usize, buffer_size: usize, }, BufferArrayIndexOutOfBounds { index: usize, count: usize, }, TextureAccessOutOfBounds { x: u32, y: u32, z: u32, width: u32, height: u32, depth: u32, }, InvalidTextureDimensions { width: u32, height: u32, depth: u32, }, TextureTexelCountOverflow { width: u32, height: u32, depth: u32, }, TextureFormatMismatch { expected: &'static str, found: &'static str, }, InvalidLiteral { value: String, value_type: String, }, ArithmeticError { message: String, }, TypeMismatch { expected: String, found: String, }, UninitializedRegister { register: usize, }, UninitializedLocal { local: usize, },
}

Variants§

§

MissingMainFunction

§

UnsupportedRawCode

§

UnsupportedMainSignature

Fields

§message: String
§

UnsupportedType

Fields

§type_name: String
§

UnsupportedStatement

Fields

§message: String
§

UnsupportedAssignmentTarget

Fields

§message: String
§

UnsupportedExpression

Fields

§message: String
§

UnsupportedBufferLayout

Fields

§message: String
§

UnsupportedDescriptor

Fields

§message: String
§

DescriptorAccessDenied

Fields

§access: &'static str
§

DescriptorTypeMismatch

Fields

§expected: &'static str
§found: &'static str
§

UnknownBufferMember

Fields

§member: String
§

UnboundDescriptor

Fields

§

MissingPushConstant

§

MissingMeshOutputs

§

MissingTaskOutputs

§

MissingWorkgroupState

§

UninitializedWorkgroupValue

Fields

§name: String
§

MissingTaskPayload

Fields

§name: String
§

TaskPayloadIndexOutOfBounds

Fields

§name: String
§index: usize
§count: usize
§

TaskPayloadOutputIndexOutOfBounds

Fields

§name: String
§index: usize
§count: usize
§

MeshOutputIndexOutOfBounds

Fields

§kind: &'static str
§index: usize
§count: usize
§

MeshOutputCountLimitExceeded

Fields

§kind: &'static str
§requested: u32
§limit: u32
§

TaskMeshOutputCountLimitExceeded

Fields

§requested: u32
§limit: u32
§

DivergentWorkgroupBarrier

Fields

§lane: usize
§expected_instruction: usize
§found_instruction: Option<usize>
§

MissingSpecialization

Fields

§name: String
§

InstructionLimitExceeded

Fields

§limit: usize
§

CallDepthLimitExceeded

Fields

§limit: usize
§

CallArgumentMismatch

Fields

§expected: usize
§found: usize
§

BufferAccessOutOfBounds

Fields

§offset: usize
§size: usize
§buffer_size: usize
§

BufferArrayIndexOutOfBounds

Fields

§index: usize
§count: usize
§

TextureAccessOutOfBounds

Fields

§width: u32
§height: u32
§depth: u32
§

InvalidTextureDimensions

Fields

§width: u32
§height: u32
§depth: u32
§

TextureTexelCountOverflow

Fields

§width: u32
§height: u32
§depth: u32
§

TextureFormatMismatch

Fields

§expected: &'static str
§found: &'static str
§

InvalidLiteral

Fields

§value: String
§value_type: String
§

ArithmeticError

Fields

§message: String
§

TypeMismatch

Fields

§expected: String
§found: String
§

UninitializedRegister

Fields

§register: usize
§

UninitializedLocal

Fields

§local: usize

Trait Implementations§

Source§

impl Debug for VmError

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Display for VmError

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Eq for VmError

Source§

impl Error for VmError

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl PartialEq for VmError

Source§

fn eq(&self, other: &VmError) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for VmError

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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. 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.