Closed
Description
I don't understand why fields in fields[field_capacity]
array of GenericFeaturesPNextNode
are enabled on initailization by memset
, could you please explain?
The comment // Zero out supported features
right above memset
in VkBootstrap.cpp
also points to that memset
was supposed to disable fields. But I assume that setting every byte of fields
array to UINT8_MAX
enables all the fields.
Metadata
Assignees
Labels
No labels
Activity
th3or14 commentedon Feb 15, 2025
This commit 75db58a shows that once the
fields
array initalization code wasAnd this pull request #89 introduces
memset
s for thefields
array initialization. I'm pretty sure that the author intended to zero out the data. I would bring back zero initialization. But I would better replace suchmemset
s with explicit assignments toVK_FALSE
since valid values ofVkBool32
variables areVK_TRUE
andVK_FALSE
only.