aboutsummaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authordan sinclair <dj2@everburning.com>2019-04-10 10:09:33 -0400
committerGitHub <noreply@github.com>2019-04-10 10:09:33 -0400
commitae06ff8ee7b40f1e7e0741b102505c2d6513bdcf (patch)
treee9c636ecccf8dad6d68dac8491672fa3df27bde8 /samples
parentb322b20327af1d6665c606983c0de035ddee6c26 (diff)
downloadamber-ae06ff8ee7b40f1e7e0741b102505c2d6513bdcf.tar.gz
Simplify Format::GetBytesize; rename to SizeInBytes (#457)
The SizeInBytes name matches what is used in the DatumType class.
Diffstat (limited to 'samples')
-rw-r--r--samples/amber.cc3
-rw-r--r--samples/config_helper_dawn.cc3
-rw-r--r--samples/config_helper_vulkan.cc1
3 files changed, 5 insertions, 2 deletions
diff --git a/samples/amber.cc b/samples/amber.cc
index 542a2e0..0541fce 100644
--- a/samples/amber.cc
+++ b/samples/amber.cc
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+#include "amber/amber.h"
+
#include <cassert>
#include <cstdlib>
#include <fstream>
@@ -21,7 +23,6 @@
#include <utility>
#include <vector>
-#include "amber/amber.h"
#include "amber/recipe.h"
#include "samples/config_helper.h"
#include "samples/png.h"
diff --git a/samples/config_helper_dawn.cc b/samples/config_helper_dawn.cc
index f3577b7..e733b88 100644
--- a/samples/config_helper_dawn.cc
+++ b/samples/config_helper_dawn.cc
@@ -13,7 +13,9 @@
// limitations under the License.
#include "samples/config_helper_dawn.h"
+
#include <iostream>
+
#include "samples/dawn_device_metal.h"
namespace sample {
@@ -38,7 +40,6 @@ amber::Result ConfigHelperDawn::CreateConfig(
bool,
bool,
std::unique_ptr<amber::EngineConfig>* config) {
-
// Set procedure table and error callback.
DawnProcTable backendProcs = dawn_native::GetProcs();
dawnSetProcs(&backendProcs);
diff --git a/samples/config_helper_vulkan.cc b/samples/config_helper_vulkan.cc
index 0cff771..551fc12 100644
--- a/samples/config_helper_vulkan.cc
+++ b/samples/config_helper_vulkan.cc
@@ -15,6 +15,7 @@
#include "samples/config_helper_vulkan.h"
#include <vulkan/vulkan.h>
+
#include <algorithm>
#include <cstring>
#include <iostream>