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
UnsupportedType
UnsupportedStatement
UnsupportedAssignmentTarget
UnsupportedExpression
UnsupportedBufferLayout
UnsupportedDescriptor
DescriptorAccessDenied
DescriptorTypeMismatch
UnknownBufferMember
UnboundDescriptor
Fields
§
slot: ResourceSlotMissingPushConstant
MissingMeshOutputs
MissingTaskOutputs
MissingWorkgroupState
UninitializedWorkgroupValue
MissingTaskPayload
TaskPayloadIndexOutOfBounds
TaskPayloadOutputIndexOutOfBounds
MeshOutputIndexOutOfBounds
MeshOutputCountLimitExceeded
TaskMeshOutputCountLimitExceeded
DivergentWorkgroupBarrier
MissingSpecialization
InstructionLimitExceeded
CallDepthLimitExceeded
CallArgumentMismatch
BufferAccessOutOfBounds
BufferArrayIndexOutOfBounds
TextureAccessOutOfBounds
InvalidTextureDimensions
TextureTexelCountOverflow
TextureFormatMismatch
InvalidLiteral
ArithmeticError
TypeMismatch
UninitializedRegister
UninitializedLocal
Trait Implementations§
impl Eq for VmError
Source§impl Error for VmError
impl Error for VmError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
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
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for VmError
Auto Trait Implementations§
impl Freeze for VmError
impl RefUnwindSafe for VmError
impl Send for VmError
impl Sync for VmError
impl Unpin for VmError
impl UnsafeUnpin for VmError
impl UnwindSafe for VmError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more