mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-09 21:49:22 +00:00
Add missing ToBackend implementation for Adapter
BUG=dawn:29 Change-Id: I00926dd201c7a8f24d769078540c75c25f210515 Reviewed-on: https://dawn-review.googlesource.com/c/3842 Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
parent
0d03b09623
commit
7aae840a22
@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
namespace dawn_native {
|
namespace dawn_native {
|
||||||
|
|
||||||
|
class AdapterBase;
|
||||||
class BindGroupBase;
|
class BindGroupBase;
|
||||||
class BindGroupBuilder;
|
class BindGroupBuilder;
|
||||||
class BindGroupLayoutBase;
|
class BindGroupLayoutBase;
|
||||||
@ -32,6 +33,7 @@ namespace dawn_native {
|
|||||||
class FenceBase;
|
class FenceBase;
|
||||||
class InputStateBase;
|
class InputStateBase;
|
||||||
class InputStateBuilder;
|
class InputStateBuilder;
|
||||||
|
class InstanceBase;
|
||||||
class PipelineLayoutBase;
|
class PipelineLayoutBase;
|
||||||
class PipelineLayoutBuilder;
|
class PipelineLayoutBuilder;
|
||||||
class QueueBase;
|
class QueueBase;
|
||||||
|
@ -23,6 +23,11 @@ namespace dawn_native {
|
|||||||
template <typename T, typename BackendTraits>
|
template <typename T, typename BackendTraits>
|
||||||
struct ToBackendTraits;
|
struct ToBackendTraits;
|
||||||
|
|
||||||
|
template <typename BackendTraits>
|
||||||
|
struct ToBackendTraits<AdapterBase, BackendTraits> {
|
||||||
|
using BackendType = typename BackendTraits::AdapterType;
|
||||||
|
};
|
||||||
|
|
||||||
template <typename BackendTraits>
|
template <typename BackendTraits>
|
||||||
struct ToBackendTraits<BindGroupBase, BackendTraits> {
|
struct ToBackendTraits<BindGroupBase, BackendTraits> {
|
||||||
using BackendType = typename BackendTraits::BindGroupType;
|
using BackendType = typename BackendTraits::BindGroupType;
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
namespace dawn_native { namespace d3d12 {
|
namespace dawn_native { namespace d3d12 {
|
||||||
|
|
||||||
|
class Adapter;
|
||||||
class BindGroup;
|
class BindGroup;
|
||||||
class BindGroupLayout;
|
class BindGroupLayout;
|
||||||
class Buffer;
|
class Buffer;
|
||||||
@ -37,6 +38,7 @@ namespace dawn_native { namespace d3d12 {
|
|||||||
class TextureView;
|
class TextureView;
|
||||||
|
|
||||||
struct D3D12BackendTraits {
|
struct D3D12BackendTraits {
|
||||||
|
using AdapterType = Adapter;
|
||||||
using BindGroupType = BindGroup;
|
using BindGroupType = BindGroup;
|
||||||
using BindGroupLayoutType = BindGroupLayout;
|
using BindGroupLayoutType = BindGroupLayout;
|
||||||
using BufferType = Buffer;
|
using BufferType = Buffer;
|
||||||
|
@ -25,6 +25,7 @@ namespace {
|
|||||||
|
|
||||||
namespace dawn_native { namespace metal {
|
namespace dawn_native { namespace metal {
|
||||||
|
|
||||||
|
class Adapter;
|
||||||
using BindGroup = BindGroupBase;
|
using BindGroup = BindGroupBase;
|
||||||
using BindGroupLayout = BindGroupLayoutBase;
|
using BindGroupLayout = BindGroupLayoutBase;
|
||||||
class Buffer;
|
class Buffer;
|
||||||
@ -44,6 +45,7 @@ namespace dawn_native { namespace metal {
|
|||||||
class TextureView;
|
class TextureView;
|
||||||
|
|
||||||
struct MetalBackendTraits {
|
struct MetalBackendTraits {
|
||||||
|
using AdapterType = Adapter;
|
||||||
using BindGroupType = BindGroup;
|
using BindGroupType = BindGroup;
|
||||||
using BindGroupLayoutType = BindGroupLayout;
|
using BindGroupLayoutType = BindGroupLayout;
|
||||||
using BufferType = Buffer;
|
using BufferType = Buffer;
|
||||||
|
@ -35,6 +35,7 @@
|
|||||||
|
|
||||||
namespace dawn_native { namespace null {
|
namespace dawn_native { namespace null {
|
||||||
|
|
||||||
|
class Adapter;
|
||||||
using BindGroup = BindGroupBase;
|
using BindGroup = BindGroupBase;
|
||||||
using BindGroupLayout = BindGroupLayoutBase;
|
using BindGroupLayout = BindGroupLayoutBase;
|
||||||
class Buffer;
|
class Buffer;
|
||||||
@ -53,6 +54,7 @@ namespace dawn_native { namespace null {
|
|||||||
using TextureView = TextureViewBase;
|
using TextureView = TextureViewBase;
|
||||||
|
|
||||||
struct NullBackendTraits {
|
struct NullBackendTraits {
|
||||||
|
using AdapterType = Adapter;
|
||||||
using BindGroupType = BindGroup;
|
using BindGroupType = BindGroup;
|
||||||
using BindGroupLayoutType = BindGroupLayout;
|
using BindGroupLayoutType = BindGroupLayout;
|
||||||
using BufferType = Buffer;
|
using BufferType = Buffer;
|
||||||
|
@ -25,6 +25,7 @@ namespace {
|
|||||||
|
|
||||||
namespace dawn_native { namespace opengl {
|
namespace dawn_native { namespace opengl {
|
||||||
|
|
||||||
|
class Adapter;
|
||||||
using BindGroup = BindGroupBase;
|
using BindGroup = BindGroupBase;
|
||||||
using BindGroupLayout = BindGroupLayoutBase;
|
using BindGroupLayout = BindGroupLayoutBase;
|
||||||
class Buffer;
|
class Buffer;
|
||||||
@ -44,6 +45,7 @@ namespace dawn_native { namespace opengl {
|
|||||||
class TextureView;
|
class TextureView;
|
||||||
|
|
||||||
struct OpenGLBackendTraits {
|
struct OpenGLBackendTraits {
|
||||||
|
using AdapterType = Adapter;
|
||||||
using BindGroupType = BindGroup;
|
using BindGroupType = BindGroup;
|
||||||
using BindGroupLayoutType = BindGroupLayout;
|
using BindGroupLayoutType = BindGroupLayout;
|
||||||
using BufferType = Buffer;
|
using BufferType = Buffer;
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
namespace dawn_native { namespace vulkan {
|
namespace dawn_native { namespace vulkan {
|
||||||
|
|
||||||
|
class Adapter;
|
||||||
class BindGroup;
|
class BindGroup;
|
||||||
class BindGroupLayout;
|
class BindGroupLayout;
|
||||||
class Buffer;
|
class Buffer;
|
||||||
@ -37,6 +38,7 @@ namespace dawn_native { namespace vulkan {
|
|||||||
class TextureView;
|
class TextureView;
|
||||||
|
|
||||||
struct VulkanBackendTraits {
|
struct VulkanBackendTraits {
|
||||||
|
using AdapterType = Adapter;
|
||||||
using BindGroupType = BindGroup;
|
using BindGroupType = BindGroup;
|
||||||
using BindGroupLayoutType = BindGroupLayout;
|
using BindGroupLayoutType = BindGroupLayout;
|
||||||
using BufferType = Buffer;
|
using BufferType = Buffer;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user