Skip to content

Commit

Permalink
Merge pull request #22 from ArthurKValladares/master
Browse files Browse the repository at this point in the history
Add 'ReflectEntryPointLocalSize' to 'ReflectEntryPoint'
  • Loading branch information
gwihlidal authored Nov 4, 2023
2 parents 0ecc4fc + f8e3cdb commit b2c4527
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ pub(crate) fn ffi_to_entry_point(ffi_type: &ffi::SpvReflectEntryPoint) -> Reflec
)
}
.to_vec(),
local_size: ReflectEntryPointLocalSize {
x: ffi_type.local_size.x,
y: ffi_type.local_size.y,
z: ffi_type.local_size.z,
},
}
}

Expand Down
8 changes: 8 additions & 0 deletions src/types/variable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,13 @@ pub struct ReflectInterfaceVariable {
pub(crate) internal_data: *const ffi::SpvReflectInterfaceVariable,
}

#[derive(Debug, Copy, Clone, Serialize)]
pub struct ReflectEntryPointLocalSize {
pub x: u32,
pub y: u32,
pub z: u32,
}

#[derive(Debug, Clone, Serialize)]
pub struct ReflectEntryPoint {
pub name: String,
Expand All @@ -184,4 +191,5 @@ pub struct ReflectEntryPoint {
pub descriptor_sets: Vec<ReflectDescriptorSet>,
pub used_uniforms: Vec<u32>,
pub used_push_constants: Vec<u32>,
pub local_size: ReflectEntryPointLocalSize,
}

0 comments on commit b2c4527

Please sign in to comment.