Adding subresource_range parameter to extend the image-specific APIs to modify the LOD (Level-of-Detail) parameters and translate that over to the vulkan-cpp wrappers.
API Usage Example
Here is a brief pseudocode of how one might use this API to set those LOD parameters.
Where setting vk::subresource_range is an optional requirement for keeping compatible to other use-cases where you can just leave the texture to its initial default values.
vk::texture_params params = {...};
vk::subresource_range subresource = {
.min_lod = 0.f,
.max_lod = 1.f,
.lod_bias = 0.f, // optional
// ... additional lod-specific parameters
};
vk::image texture_image(..., texture_params, subresource);
Task Completion
We should be able to have a demo that demonstrates setting up mipmap levels. Through the control of these sets of parameters that is set through the vk::subresource_range struct.
Adding subresource_range parameter to extend the image-specific APIs to modify the LOD (Level-of-Detail) parameters and translate that over to the vulkan-cpp wrappers.
API Usage Example
Here is a brief pseudocode of how one might use this API to set those LOD parameters.
Where setting
vk::subresource_rangeis an optional requirement for keeping compatible to other use-cases where you can just leave the texture to its initial default values.vk::texture_params params = {...}; vk::subresource_range subresource = { .min_lod = 0.f, .max_lod = 1.f, .lod_bias = 0.f, // optional // ... additional lod-specific parameters }; vk::image texture_image(..., texture_params, subresource);Task Completion
We should be able to have a demo that demonstrates setting up mipmap levels. Through the control of these sets of parameters that is set through the
vk::subresource_rangestruct.