mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-13 10:51:35 +00:00
Rename CreateCppNXTDevice to CreateCppDawnDevice
This commit is contained in:
parent
fde3f2b5e0
commit
39039fa317
@ -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);
|
||||||
|
@ -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);
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -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);
|
||||||
|
@ -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);
|
||||||
|
@ -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);
|
||||||
|
@ -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();
|
||||||
|
@ -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);
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user