Expand description
Crate that contains utility modules used by other rendy crates
Modules§
- Types shared across rendy
Macros§
- Implement ownership checking for value with
device: DeviceId
field. - Implement ownership checking for value with
instance: InstanceId
field. - Execute arm with matching backend. If particular backend is disabled then its arm is stripped from compilation altogether.
assert!
that is exists only if"no-slow-safety-checks"
feature is not enabled.assert_eq!
that is exists only if"no-slow-safety-checks"
feature is not enabled.assert_ne!
that is exists only if"no-slow-safety-checks"
feature is not enabled.- Resolve into input AST if dx12 backend is enabled.
- Resolve into input AST if empty backend is enabled.
- Resolve into input AST if metal backend is enabled.
- Resolve into input AST if rendy is requested to perform slow safety checks.
- Resolve into input AST if vulkan backend is enabled.
- Resolve into input AST if dx12 backend is disabled.
- Resolve into input AST if empty backend is disabled.
- Resolve into input AST if metal backend is disabled.
- Resolve into input AST if rendy is requested to not perform slow safety checks.
- Resolve into input AST if vulkan backend is disabled.
Structs§
- Raw device wrapper with id.
- Id of the instance.
- Raw instance wrapper with id.
- Id of the hal instance.
Functions§
- Cast
cow
of some arbitrary type intocow
of bytes. Can lead to UB if allocator changes. Use with caution. TODO: Replace with something safer. - Cast slice of some arbitrary type into slice of bytes.
- Cast vec of some arbitrary type into vec of bytes. Can lead to UB if allocator changes. Use with caution. TODO: Replace with something safer.
- Casts identical types. Useful in generic environment where caller knows that two types are the same but Rust is not convinced.