Archived
1
Fork 0

Fix WebGPU compile error due to last commit

This commit is contained in:
Joshua Goins 2022-03-06 22:51:56 -05:00
parent a0d92be759
commit a52cd3d71c

View file

@ -420,10 +420,6 @@ GFXPipeline* GFXWebGPU::create_graphics_pipeline(const GFXGraphicsPipelineCreate
entry.buffer.type = WGPUBufferBindingType_Uniform;
}
break;
case GFXBindingType::Texture: {
entry.texture.sampleType = WGPUTextureSampleType_Force32;
}
break;
case GFXBindingType::StorageImage:
{
entry.storageTexture.access = WGPUStorageTextureAccess_WriteOnly;
@ -579,7 +575,7 @@ void GFXWebGPU::submit(GFXCommandBuffer* command_buffer, const platform::window_
uint64_t last_bind_group_hash = 0;
const auto try_bind_group = [&] -> bool {
const auto try_bind_group = [&]() -> bool {
if(current_pipeline == nullptr)
return false;