On Tue, 20 Jul 2021 at 05:06, Conor McCarthy cmccarthy@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.