LearnWebGPU
LearnWebGPU copied to clipboard
Update first-color.md
trafficstars
// At the end of the frame wgpuTextureRelease(surfaceTexture.texture); Destroy texture to prevent memory leak after rendering.
I need to test this further as it used to be a discrepancy between Dawn and wgpu-native, might have been fixed since then
This was fixed in #93 (which is temporarily a bit convoluted due to wgpu-native not behaving per the standard yet).