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

Function allow_layered_cubemaps

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

Source from the content-addressed store, hash-verified

968
969 #[test]
970 fn allow_layered_cubemaps() {
971 let _context = crate::quick_init().unwrap();
972
973 let obj = ArrayObject::new_layered_cubemap(4, 4, ArrayFormat::F64, 1).unwrap();
974
975 let descriptor = obj.descriptor().unwrap();
976 assert_eq!([4, 4, 24], descriptor.dims());
977 assert_eq!(
978 ArrayObjectFlags::CUBEMAP | ArrayObjectFlags::LAYERED,
979 descriptor.flags()
980 );
981 }
982
983 #[test]
984 #[should_panic]

Callers

nothing calls this directly

Calls 2

quick_initFunction · 0.85
descriptorMethod · 0.45

Tested by

no test coverage detected