From 39039fa31740edd24203034be8c53f6d6d8fd6dc Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Wed, 18 Jul 2018 14:06:10 +0200 Subject: [PATCH] Rename CreateCppNXTDevice to CreateCppDawnDevice --- examples/Animometer.cpp | 2 +- examples/CHelloTriangle.cpp | 2 +- examples/ComputeBoids.cpp | 2 +- examples/CppHelloTriangle.cpp | 2 +- examples/CubeReflection.cpp | 2 +- examples/SampleUtils.cpp | 2 +- examples/SampleUtils.h | 2 +- examples/glTFViewer/glTFViewer.cpp | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/Animometer.cpp b/examples/Animometer.cpp index dc6feacc07..ccbcb942e2 100644 --- a/examples/Animometer.cpp +++ b/examples/Animometer.cpp @@ -44,7 +44,7 @@ struct ShaderData { static std::vector shaderData; void init() { - device = CreateCppNXTDevice(); + device = CreateCppDawnDevice(); queue = device.CreateQueue(); swapchain = GetSwapChain(device); diff --git a/examples/CHelloTriangle.cpp b/examples/CHelloTriangle.cpp index 078c1433dc..735c208ebf 100644 --- a/examples/CHelloTriangle.cpp +++ b/examples/CHelloTriangle.cpp @@ -25,7 +25,7 @@ nxtRenderPipeline pipeline; nxtTextureFormat swapChainFormat; void init() { - device = CreateCppNXTDevice().Release(); + device = CreateCppDawnDevice().Release(); queue = nxtDeviceCreateQueue(device); { diff --git a/examples/ComputeBoids.cpp b/examples/ComputeBoids.cpp index 3939d05309..5be5163c5b 100644 --- a/examples/ComputeBoids.cpp +++ b/examples/ComputeBoids.cpp @@ -279,7 +279,7 @@ dawn::CommandBuffer createCommandBuffer(const dawn::RenderPassDescriptor& render } void init() { - device = CreateCppNXTDevice(); + device = CreateCppDawnDevice(); queue = device.CreateQueue(); swapchain = GetSwapChain(device); diff --git a/examples/CppHelloTriangle.cpp b/examples/CppHelloTriangle.cpp index 95baf29ab7..10101adcac 100644 --- a/examples/CppHelloTriangle.cpp +++ b/examples/CppHelloTriangle.cpp @@ -75,7 +75,7 @@ void initTextures() { } void init() { - device = CreateCppNXTDevice(); + device = CreateCppDawnDevice(); queue = device.CreateQueue(); swapchain = GetSwapChain(device); diff --git a/examples/CubeReflection.cpp b/examples/CubeReflection.cpp index 2b898c0c6c..1eae20108d 100644 --- a/examples/CubeReflection.cpp +++ b/examples/CubeReflection.cpp @@ -111,7 +111,7 @@ struct CameraData { } cameraData; void init() { - device = CreateCppNXTDevice(); + device = CreateCppDawnDevice(); queue = device.CreateQueue(); swapchain = GetSwapChain(device); diff --git a/examples/SampleUtils.cpp b/examples/SampleUtils.cpp index 23b0d8fa01..ebb6976181 100644 --- a/examples/SampleUtils.cpp +++ b/examples/SampleUtils.cpp @@ -65,7 +65,7 @@ static dawn::wire::CommandHandler* wireClient = nullptr; static dawn::wire::TerribleCommandBuffer* c2sBuf = nullptr; static dawn::wire::TerribleCommandBuffer* s2cBuf = nullptr; -dawn::Device CreateCppNXTDevice() { +dawn::Device CreateCppDawnDevice() { binding = utils::CreateBinding(backendType); if (binding == nullptr) { return dawn::Device(); diff --git a/examples/SampleUtils.h b/examples/SampleUtils.h index 1c42300450..c98dcaf1a6 100644 --- a/examples/SampleUtils.h +++ b/examples/SampleUtils.h @@ -22,7 +22,7 @@ bool ShouldQuit(); struct GLFWwindow; struct GLFWwindow* GetGLFWWindow(); -dawn::Device CreateCppNXTDevice(); +dawn::Device CreateCppDawnDevice(); uint64_t GetSwapChainImplementation(); dawn::TextureFormat GetPreferredSwapChainTextureFormat(); dawn::SwapChain GetSwapChain(const dawn::Device& device); diff --git a/examples/glTFViewer/glTFViewer.cpp b/examples/glTFViewer/glTFViewer.cpp index 6b84c3bae5..d6dfe28054 100644 --- a/examples/glTFViewer/glTFViewer.cpp +++ b/examples/glTFViewer/glTFViewer.cpp @@ -437,7 +437,7 @@ namespace { } void init() { - device = CreateCppNXTDevice(); + device = CreateCppDawnDevice(); queue = device.CreateQueue(); swapchain = GetSwapChain(device);