Skip to content

ImageView::get_swizzle_array - required size for parameter? #83

@Silverlan

Description

@Silverlan
void get_swizzle_array(VkComponentSwizzle* out_swizzle_array_ptr) const
{
    memcpy(out_swizzle_array_ptr,
           m_swizzle_array,
           sizeof(m_swizzle_array) );
}

get_swizzle_array copies the contents of m_swizzle_array to the input array, but there's no way to know as a caller how large the input array has to be without looking into the code. The array size is always 4, but there should probably be a function to retrieve that information.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions