Rename CreateCppNXTDevice to CreateCppDawnDevice

This commit is contained in:
Corentin Wallez 2018-07-18 14:06:10 +02:00 committed by Corentin Wallez
parent fde3f2b5e0
commit 39039fa317
8 changed files with 8 additions and 8 deletions

View File

@ -44,7 +44,7 @@ struct ShaderData {
static std::vector<ShaderData> shaderData; static std::vector<ShaderData> shaderData;
void init() { void init() {
device = CreateCppNXTDevice(); device = CreateCppDawnDevice();
queue = device.CreateQueue(); queue = device.CreateQueue();
swapchain = GetSwapChain(device); swapchain = GetSwapChain(device);

View File

@ -25,7 +25,7 @@ nxtRenderPipeline pipeline;
nxtTextureFormat swapChainFormat; nxtTextureFormat swapChainFormat;
void init() { void init() {
device = CreateCppNXTDevice().Release(); device = CreateCppDawnDevice().Release();
queue = nxtDeviceCreateQueue(device); queue = nxtDeviceCreateQueue(device);
{ {

View File

@ -279,7 +279,7 @@ dawn::CommandBuffer createCommandBuffer(const dawn::RenderPassDescriptor& render
} }
void init() { void init() {
device = CreateCppNXTDevice(); device = CreateCppDawnDevice();
queue = device.CreateQueue(); queue = device.CreateQueue();
swapchain = GetSwapChain(device); swapchain = GetSwapChain(device);

View File

@ -75,7 +75,7 @@ void initTextures() {
} }
void init() { void init() {
device = CreateCppNXTDevice(); device = CreateCppDawnDevice();
queue = device.CreateQueue(); queue = device.CreateQueue();
swapchain = GetSwapChain(device); swapchain = GetSwapChain(device);

View File

@ -111,7 +111,7 @@ struct CameraData {
} cameraData; } cameraData;
void init() { void init() {
device = CreateCppNXTDevice(); device = CreateCppDawnDevice();
queue = device.CreateQueue(); queue = device.CreateQueue();
swapchain = GetSwapChain(device); swapchain = GetSwapChain(device);

View File

@ -65,7 +65,7 @@ static dawn::wire::CommandHandler* wireClient = nullptr;
static dawn::wire::TerribleCommandBuffer* c2sBuf = nullptr; static dawn::wire::TerribleCommandBuffer* c2sBuf = nullptr;
static dawn::wire::TerribleCommandBuffer* s2cBuf = nullptr; static dawn::wire::TerribleCommandBuffer* s2cBuf = nullptr;
dawn::Device CreateCppNXTDevice() { dawn::Device CreateCppDawnDevice() {
binding = utils::CreateBinding(backendType); binding = utils::CreateBinding(backendType);
if (binding == nullptr) { if (binding == nullptr) {
return dawn::Device(); return dawn::Device();

View File

@ -22,7 +22,7 @@ bool ShouldQuit();
struct GLFWwindow; struct GLFWwindow;
struct GLFWwindow* GetGLFWWindow(); struct GLFWwindow* GetGLFWWindow();
dawn::Device CreateCppNXTDevice(); dawn::Device CreateCppDawnDevice();
uint64_t GetSwapChainImplementation(); uint64_t GetSwapChainImplementation();
dawn::TextureFormat GetPreferredSwapChainTextureFormat(); dawn::TextureFormat GetPreferredSwapChainTextureFormat();
dawn::SwapChain GetSwapChain(const dawn::Device& device); dawn::SwapChain GetSwapChain(const dawn::Device& device);

View File

@ -437,7 +437,7 @@ namespace {
} }
void init() { void init() {
device = CreateCppNXTDevice(); device = CreateCppDawnDevice();
queue = device.CreateQueue(); queue = device.CreateQueue();
swapchain = GetSwapChain(device); swapchain = GetSwapChain(device);