nv/ray_tracing: Initialize tagged struct with default() (#792)

This commit is contained in:
Marijn Suijten 2023-09-06 01:17:20 +02:00 committed by GitHub
parent 0652aee695
commit 3f5b96b363
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,7 +57,7 @@ impl RayTracing {
&self,
info: &vk::AccelerationStructureMemoryRequirementsInfoNV,
) -> vk::MemoryRequirements2KHR {
let mut requirements = mem::zeroed();
let mut requirements = Default::default();
(self.fp.get_acceleration_structure_memory_requirements_nv)(
self.handle,
info,