Rename CreateCppNXTDevice to CreateCppDawnDevice
This commit is contained in:
parent
fde3f2b5e0
commit
39039fa317
|
@ -44,7 +44,7 @@ struct ShaderData {
|
|||
static std::vector<ShaderData> shaderData;
|
||||
|
||||
void init() {
|
||||
device = CreateCppNXTDevice();
|
||||
device = CreateCppDawnDevice();
|
||||
|
||||
queue = device.CreateQueue();
|
||||
swapchain = GetSwapChain(device);
|
||||
|
|
|
@ -25,7 +25,7 @@ nxtRenderPipeline pipeline;
|
|||
nxtTextureFormat swapChainFormat;
|
||||
|
||||
void init() {
|
||||
device = CreateCppNXTDevice().Release();
|
||||
device = CreateCppDawnDevice().Release();
|
||||
queue = nxtDeviceCreateQueue(device);
|
||||
|
||||
{
|
||||
|
|
|
@ -279,7 +279,7 @@ dawn::CommandBuffer createCommandBuffer(const dawn::RenderPassDescriptor& render
|
|||
}
|
||||
|
||||
void init() {
|
||||
device = CreateCppNXTDevice();
|
||||
device = CreateCppDawnDevice();
|
||||
|
||||
queue = device.CreateQueue();
|
||||
swapchain = GetSwapChain(device);
|
||||
|
|
|
@ -75,7 +75,7 @@ void initTextures() {
|
|||
}
|
||||
|
||||
void init() {
|
||||
device = CreateCppNXTDevice();
|
||||
device = CreateCppDawnDevice();
|
||||
|
||||
queue = device.CreateQueue();
|
||||
swapchain = GetSwapChain(device);
|
||||
|
|
|
@ -111,7 +111,7 @@ struct CameraData {
|
|||
} cameraData;
|
||||
|
||||
void init() {
|
||||
device = CreateCppNXTDevice();
|
||||
device = CreateCppDawnDevice();
|
||||
|
||||
queue = device.CreateQueue();
|
||||
swapchain = GetSwapChain(device);
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -437,7 +437,7 @@ namespace {
|
|||
}
|
||||
|
||||
void init() {
|
||||
device = CreateCppNXTDevice();
|
||||
device = CreateCppDawnDevice();
|
||||
|
||||
queue = device.CreateQueue();
|
||||
swapchain = GetSwapChain(device);
|
||||
|
|
Loading…
Reference in New Issue