Question:
I don't know why I get an image API error in the void Update() part of the Gist code.
What I've researched:
I investigated using ChatGPT and Gemini and found that there is a high possibility that there is a problem with the timing of the fence or the way the command buffer is used.
What I want to know:
The cause and solution.
Github Gist: https://gist.github.com/Shigurechan/93851d3c1ec16f665b742de092af9a3f