diff options
author | David Neto <dneto@google.com> | 2019-04-09 17:07:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-09 17:07:38 -0400 |
commit | 539730372bb8145fa029759be17dff320c970895 (patch) | |
tree | 6e930b1a18047cf0c816a1f21aa0a3053a19e62e /samples | |
parent | 77b90e8d22a2a6191f058adcfba51076b115f112 (diff) | |
download | amber-539730372bb8145fa029759be17dff320c970895.tar.gz |
Dawn engine: Adapt to latest Dawn API. (#454)
- Use to 64bit offsets for buffer lengths
- Change CreateDefaultTextureView --> CreateDefaultView
Also fix placement of method comment.
Diffstat (limited to 'samples')
-rw-r--r-- | samples/config_helper_dawn.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/samples/config_helper_dawn.cc b/samples/config_helper_dawn.cc index 32c4869..f3577b7 100644 --- a/samples/config_helper_dawn.cc +++ b/samples/config_helper_dawn.cc @@ -16,12 +16,17 @@ #include <iostream> #include "samples/dawn_device_metal.h" namespace sample { + ConfigHelperDawn::ConfigHelperDawn() = default; ConfigHelperDawn::~ConfigHelperDawn() = default; -namespace { // Callback which prints a message from a Dawn device operation. + +namespace { + +// Callback which prints a message from a Dawn device operation. void PrintDeviceError(const char* message, ::dawn::CallbackUserdata) { std::cout << "Device error: " << message << std::endl; } + } // namespace amber::Result ConfigHelperDawn::CreateConfig( |