MCPcopy Create free account
hub / github.com/Rust-GPU/rust-cuda / allow_cubemaps

Function allow_cubemaps

crates/cust/src/memory/array.rs:959–967  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

957
958 #[test]
959 fn allow_cubemaps() {
960 let _context = crate::quick_init().unwrap();
961
962 let obj = ArrayObject::new_cubemap(4, ArrayFormat::F64, 1).unwrap();
963
964 let descriptor = obj.descriptor().unwrap();
965 assert_eq!([4, 4, 6], descriptor.dims());
966 assert_eq!(ArrayObjectFlags::CUBEMAP, descriptor.flags());
967 }
968
969 #[test]
970 fn allow_layered_cubemaps() {

Callers

nothing calls this directly

Calls 2

quick_initFunction · 0.85
descriptorMethod · 0.45

Tested by

no test coverage detected