can't zero initialize, OptixPixelFormat is not zero-initializable.
()
| 17 | |
| 18 | // can't zero initialize, OptixPixelFormat is not zero-initializable. |
| 19 | fn 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] |