[PATCH vkd3d 1/2] vkd3d: Introduce a pipeline state helper function for uav counter cleanup.

Henri Verbeet hverbeet at gmail.com
Thu Jul 22 04:14:23 CDT 2021


On Tue, 20 Jul 2021 at 05:06, Conor McCarthy <cmccarthy at codeweavers.com> wrote:
> +static void d3d12_pipeline_state_uav_counter_cleanup(struct d3d12_pipeline_state *state, struct d3d12_device *device)
> +{
> +    const struct vkd3d_vk_device_procs *vk_procs = &device->vk_procs;
> +
> +    if (state->vk_set_layout)
> +        VK_CALL(vkDestroyDescriptorSetLayout(device->vk_device, state->vk_set_layout, NULL));
> +    if (state->vk_pipeline_layout)
> +        VK_CALL(vkDestroyPipelineLayout(device->vk_device, state->vk_pipeline_layout, NULL));
> +
> +    vkd3d_free(state->uav_counters);
> +}
> +
If that's all UAV counter state (is it?) perhaps it makes sense to
group it together in its own structure.



More information about the wine-devel mailing list