mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 23:26:24 +00:00
dawn.json: Use void* instead of uint8_t* for data pointers
This requires some changes in the wire because WireCmd doesn't know the size of void. This also adds a handwritten implementation of the Wire commands for SetSubData that internally converts to uint8_t so that WireCmd can generate the de/serialization. BUG=dawn:160 Change-Id: Icbf0fd7dd841639ee6f67333844e027b27a8afcc Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/7780 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
97c0885a4a
commit
67ab1ea8c7
@@ -148,8 +148,7 @@ void frame() {
|
||||
for (auto& data : shaderData) {
|
||||
data.time = f / 60.0f;
|
||||
}
|
||||
ubo.SetSubData(0, kNumTriangles * sizeof(ShaderData),
|
||||
reinterpret_cast<const uint8_t*>(shaderData.data()));
|
||||
ubo.SetSubData(0, kNumTriangles * sizeof(ShaderData), shaderData.data());
|
||||
|
||||
utils::ComboRenderPassDescriptor renderPass({backbuffer.CreateDefaultView()});
|
||||
dawn::CommandEncoder encoder = device.CreateCommandEncoder();
|
||||
|
||||
Reference in New Issue
Block a user