LearnWebGPU-Code icon indicating copy to clipboard operation
LearnWebGPU-Code copied to clipboard

step017 onQueueWorkDone callback don't trigger, utill i close window onQueueWorkDone called

Open guijiyang opened this issue 1 year ago • 7 comments

I download code and build with dawn.

but onQueueWorkDone don't called, as I close the window down, onQueueWorkDone called by release adapter, and got wrong status: "Queued work finished with status: 3", is there anything wrong? this is the output

Requesting adapter...
Got adapter: 00000265796CB290
Requesting device...
Got device: 00000265796CE550
Device features:
Device limits:
 - maxTextureDimension1D: 8192
 - maxTextureDimension2D: 8192
 - maxTextureDimension3D: 2048
 - maxTextureArrayLayers: 256
 - maxBindGroups: 4
 - maxDynamicUniformBuffersPerPipelineLayout: 8
 - maxDynamicStorageBuffersPerPipelineLayout: 4
 - maxSampledTexturesPerShaderStage: 16        
 - maxSamplersPerShaderStage: 16
 - maxStorageBuffersPerShaderStage: 8
 - maxStorageTexturesPerShaderStage: 4
 - maxUniformBuffersPerShaderStage: 12
 - maxUniformBufferBindingSize: 65536
 - maxStorageBufferBindingSize: 134217728      
 - minUniformBufferOffsetAlignment: 256        
 - minStorageBufferOffsetAlignment: 256        
 - maxVertexBuffers: 8
 - maxVertexAttributes: 16
 - maxVertexBufferArrayStride: 2048
 - maxInterStageShaderComponents: 60
 - maxComputeWorkgroupStorageSize: 16384       
 - maxComputeInvocationsPerWorkgroup: 256      
 - maxComputeWorkgroupSizeX: 256
 - maxComputeWorkgroupSizeY: 256
 - maxComputeWorkgroupSizeZ: 64
 - maxComputeWorkgroupsPerDimension: 65535     
Submitting command...
Queued work finished with status: 3
Warning: No Dawn device lost callback was set. This is probably not intended. If you really want to ignore device lost and suppress this message, set the callback to null.

guijiyang avatar Feb 05 '24 13:02 guijiyang