|
@@ -13,6 +13,7 @@
|
|
|
|
|
|
// CHANGELOG
|
|
|
// (minor and older changes stripped away, please see git history for details)
|
|
|
+// 2023-07-13: Use WGPUShaderModuleWGSLDescriptor's code instead of source. use WGPUMipmapFilterMode_Linear instead of WGPUFilterMode_Linear. (#6602)
|
|
|
// 2023-04-11: Align buffer sizes. Use WGSL shaders instead of precompiled SPIR-V.
|
|
|
// 2023-04-11: Reorganized backend to pull data from a single structure to facilitate usage with multiple-contexts (all g_XXXX access changed to bd->XXXX).
|
|
|
// 2023-01-25: Revert automatic pipeline layout generation (see https://github.com/gpuweb/gpuweb/issues/2470)
|
|
@@ -231,7 +232,7 @@ static WGPUProgrammableStageDescriptor ImGui_ImplWGPU_CreateShaderModule(const c
|
|
|
|
|
|
WGPUShaderModuleWGSLDescriptor wgsl_desc = {};
|
|
|
wgsl_desc.chain.sType = WGPUSType_ShaderModuleWGSLDescriptor;
|
|
|
- wgsl_desc.source = wgsl_source;
|
|
|
+ wgsl_desc.code = wgsl_source;
|
|
|
|
|
|
WGPUShaderModuleDescriptor desc = {};
|
|
|
desc.nextInChain = reinterpret_cast<WGPUChainedStruct*>(&wgsl_desc);
|
|
@@ -512,7 +513,7 @@ static void ImGui_ImplWGPU_CreateFontsTexture()
|
|
|
WGPUSamplerDescriptor sampler_desc = {};
|
|
|
sampler_desc.minFilter = WGPUFilterMode_Linear;
|
|
|
sampler_desc.magFilter = WGPUFilterMode_Linear;
|
|
|
- sampler_desc.mipmapFilter = WGPUFilterMode_Linear;
|
|
|
+ sampler_desc.mipmapFilter = WGPUMipmapFilterMode_Linear;
|
|
|
sampler_desc.addressModeU = WGPUAddressMode_Repeat;
|
|
|
sampler_desc.addressModeV = WGPUAddressMode_Repeat;
|
|
|
sampler_desc.addressModeW = WGPUAddressMode_Repeat;
|