mirror of
https://github.com/ocornut/imgui.git
synced 2026-10-29 07:54:40 +00:00
Dawn WebGPU Strings #8082
Labels
No labels
accidentally closed
android
backends
bug
building
clipper
coloredit
color spaces
cplusplus
data types
demo
disabled
doc
docking
dpi
drag drop
drawing/drawlist
dropped
dx12
enhancement
focus
font/text
gallery
help wanted
idle/power saving
ime
in progress
inputs
inputtext
internals
label/id and id stack
language bindings
layout
linux/bsd
menus
multi-contexts
multi-threading
multi-viewports
nav
news/info
opengl
optimization
osx/ios
overlap
plot/graph
popups
question
scrolling
selection
settings
sliders/drags
style
tables/columns
tabs
test wanted
tools
tooltips
tree
tricks & tips
useful widgets
vulkan
web
window pos/depth
window sizing
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ocornut/imgui#8082
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Version/Branch of Dear ImGui:
Version 1.91.4, Branch: master
Back-ends:
imgui_impl_wgpu.cpp + imgui_impl_glfw.cpp
Compiler, OS:
macOS 14.7 + Clang 15
Full config/build information:
No response
Details:
My Issue/Question:
When using Dawn for WebGPU at head (as of writing, this commit) with GLFW (also at head) on macOS targeting macOS with CMake, the following build errors are triggered:
and the similar:
It seems that for the Dawn backend, these lines need to be rewritten as such:
Even when these are fixed however, the following runtime WGPU errors are produced:
which point to the following lines, which likely should be corrected as:
Since
WGPUBufferDescriptor'sWGPU_BUFFER_DESCRIPTOR_INITconvenience initializer has a fieldlabelwhich has its ownWGPU_STRING_VIEW_INITconvenience initializer which now takes 2 arguments, the label's value and its length.Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code:
Minimal code example: https://github.com/nchavez324/wgpu_imgui_bug/blob/main/main.cc