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

Function null_optix_image

crates/optix/src/denoiser.rs:19–28  ·  view source on GitHub ↗

can't zero initialize, OptixPixelFormat is not zero-initializable.

()

Source from the content-addressed store, hash-verified

17
18// can't zero initialize, OptixPixelFormat is not zero-initializable.
19fn null_optix_image() -> sys::OptixImage2D {
20 sys::OptixImage2D {
21 data: 0,
22 width: 0,
23 height: 0,
24 pixelStrideInBytes: 0,
25 rowStrideInBytes: 0,
26 format: sys::OptixPixelFormat::OPTIX_PIXEL_FORMAT_FLOAT2,
27 }
28}
29
30/// Different kinds of built-in OptiX models suited for different kinds of images.
31#[non_exhaustive]

Callers 1

invokeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected