Skip to content

add subresource_range parameter to modify LOD. #78

Description

@SpinnerX

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✨improvementImproving existing designs.📐designTasks that involve the core systems. Highly involve in API design.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions