Vulkan: Resource Submission Tracking #105183

Merged
Jeroen Bakker merged 84 commits from Jeroen-Bakker/blender:vulkan-submission-resource-tracking into main 2023-03-24 07:48:04 +01:00
2 changed files with 4 additions and 5 deletions
Showing only changes of commit 91e7afbdbc - Show all commits

View File

@ -123,7 +123,7 @@ struct Shader {
void dispatch()
{
/* Dispatching 1000000 times to add some stress to the GPU. Without it tests may succeed when
* using to simple shaders. */
* using too simple shaders. */
GPU_compute_dispatch(shader, 1000, 1000, 1);
}
};

View File

@ -24,10 +24,9 @@ class VKCommandBuffer;
* a new version of these resources should be created.
*
* When a resource is updated it should check the submission id of the
* command buffer. If this is different than resources can be reused.
* If they the submission id is the same that the resource uses it
* should create a new version of the resource to now intervene with
* other commands that uses the resource.
* command buffer. If it is different, then the resource can be reused.
Jeroen-Bakker marked this conversation as resolved Outdated

"If this is different than resources can be reused." > "If it is different, then the resource can be reused."

"If this is different than resources can be reused." > "If it is different, then the resource can be reused."
* If the submission id is the same a new version of the resource to now
* intervene with other commands that uses the resource.
*
* SubmissionID is the identifier to keep track if a new submission is
* being recorded.