#[non_exhaustive]pub enum Error {
System(c_int),
FailedToInitialize,
InvalidSize,
InvalidRenderTarget,
LockHeld,
TooManyAttributes,
TooManyBuffers,
InvalidMemoryLocation,
InvalidName,
NotFound,
IndexOutOfBounds {
idx: c_int,
len: c_int,
},
}Expand description
The common error type that may be returned by citro3d functions.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
System(c_int)
C3D error code.
FailedToInitialize
A C3D object or context could not be initialized.
InvalidSize
A size parameter was specified that cannot be converted to the proper type.
InvalidRenderTarget
Failed to select the given render target for drawing to.
LockHeld
Indicates that a reference could not be obtained because a lock is already held on the requested object.
TooManyAttributes
Indicates that too many vertex attributes were registered (max 12 supported).
TooManyBuffers
Indicates that too many vertex buffer objects were registered (max 12 supported).
InvalidMemoryLocation
The given memory could not be converted to a physical address for sharing
with the GPU. Data should be allocated with ctru::linear.
InvalidName
The given name was not valid for the requested purpose.
NotFound
The requested resource could not be found.
IndexOutOfBounds
Attempted to use an index that was out of bounds.