Crate rendy_core

Source
Expand description

Crate that contains utility modules used by other rendy crates

Modules§

  • Low-level graphics abstraction for Rust. Mostly operates on data, not types. Designed for use by libraries and higher-level abstractions only.
  • Types shared across rendy

Macros§

Structs§

Enums§

Traits§

Functions§

  • Cast cow of some arbitrary type into cow 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.
  • Check if specified backend would use pipeline barriers or using them is futile. Piece of internal knowledge.