36struct VKRenderGraphLink;
79 (VK_ACCESS_SHADER_WRITE_BIT | VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT |
80 VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT | VK_ACCESS_TRANSFER_WRITE_BIT |
81 VK_ACCESS_HOST_WRITE_BIT | VK_ACCESS_MEMORY_WRITE_BIT));
152 bool use_subresource_tracking()
157 return image.use_subresource_tracking;
194 VmaAllocation allocation = VK_NULL_HANDLE,
195 const char *name =
nullptr);
204 bool use_subresource_tracking,
205 VmaAllocation allocation = VK_NULL_HANDLE,
206 const char *name =
nullptr);
215 bool use_subresource_tracking,
216 VmaAllocation allocation = VK_NULL_HANDLE,
217 const char *name =
nullptr);
226 Resource &resource = get_resource(resource_handle);
227 resource.views.append(vk_view);
287 return get_image_resource(image_handle).image.vk_image;
302 return std::move(get_resource(resource_handle).views);
318 return {.handle = handle, .stamp = resources_[handle].stamp++};
333 return {.handle = buffer_handle, .stamp = resources_[buffer_handle].stamp++};
346 return ResourceWithStamp{.handle = buffer_handle, .stamp = resources_[buffer_handle].stamp};
360 return {.handle = handle, .stamp = resources_[handle].stamp};
369 bool use_subresource_tracking,
371 VmaAllocation allocation,
372 const char *name =
nullptr);
382 void deref_resources(
const BitVector<> &resource_usages);
403 inline Resource &get_image_resource(
ResourceHandle resource_handle)
406 return resources_[resource_handle];
408 inline const Resource &get_image_resource(
ResourceHandle resource_handle)
const
411 return resources_[resource_handle];
417 return resources_[resource_handle];
424 inline Resource &get_buffer_resource(
ResourceHandle resource_handle)
427 return resources_[resource_handle];
429 inline const Resource &get_buffer_resource(
ResourceHandle resource_handle)
const
432 return resources_[resource_handle];
ResourceWithStamp get_image_and_increase_stamp(VkImage vk_image)
Vector< std::variant< VkImageView, VkBufferView > > take_views(ResourceHandle resource_handle)
void remove_swapchain_image(ResourceHandle image_handle)
void remove_image(ResourceHandle image_handle)
ResourceHandle add_image(VkImage vk_image, bool use_subresource_tracking, VmaAllocation allocation=VK_NULL_HANDLE, const char *name=nullptr)
ResourceHandle add_swapchain_image(VkImage vk_image, const char *name=nullptr)
ResourceHandle add_aliased_image(VkImage vk_image, bool use_subresource_tracking, VmaAllocation allocation=VK_NULL_HANDLE, const char *name=nullptr)
Register an image resource that can have aliased memory.
ResourceWithStamp get_buffer_and_increase_stamp(ResourceHandle buffer_handle)
bool use_dynamic_rendering_local_read
friend class VKCommandBuilder
void deref_resource(ResourceHandle resource_handle)
Vector< DiscardableResource > pop_discardable_resources()
void update_image_layout(ResourceHandle image_handle, VkImageLayout vk_image_layout)
ResourceHandle add_buffer(VkBuffer vk_buffer, VmaAllocation allocation=VK_NULL_HANDLE, const char *name=nullptr)
friend class VKRenderGraph
ResourceWithStamp get_image(VkImage vk_image) const
VkBuffer remove_buffer(ResourceHandle buffer_handle)
void register_view(ResourceHandle resource_handle, VkView vk_view)
friend struct VKRenderGraphLink
ResourceWithStamp get_buffer(ResourceHandle buffer_handle) const
const VkImage get_vk_image(ResourceHandle image_handle)
uint64_t ModificationStamp
ENUM_OPERATORS(VKResourceType)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
unsigned __int64 uint64_t
VkPipelineStageFlags vk_pipeline_stages
VkImageLayout image_layout
bool is_new_stamp() const
Vector< std::variant< VkImageView, VkBufferView > > views
bool use_subresource_tracking
struct blender::gpu::render_graph::VKResourceStateTracker::Resource::@177040105330030242205017041203256313364370336353::@075324102042273175374335256354061311203303015264 buffer
struct blender::gpu::render_graph::VKResourceStateTracker::Resource::@177040105330030242205017041203256313364370336353::@002335340160126334256077322350133252234176304034 image