ToBackend: Add support for Device

This commit is contained in:
Corentin Wallez 2017-06-12 10:23:22 -04:00 committed by Corentin Wallez
parent eca89c2989
commit c863b1c26f
5 changed files with 13 additions and 0 deletions

View File

@ -53,6 +53,11 @@ namespace backend {
using BackendType = typename BackendTraits::DepthStencilStateType;
};
template<typename BackendTraits>
struct ToBackendTraits<DeviceBase, BackendTraits> {
using BackendType = typename BackendTraits::DeviceType;
};
template<typename BackendTraits>
struct ToBackendTraits<FramebufferBase, BackendTraits> {
using BackendType = typename BackendTraits::FramebufferType;

View File

@ -42,6 +42,7 @@ namespace d3d12 {
class BufferView;
class CommandBuffer;
class DepthStencilState;
class Device;
class InputState;
class Pipeline;
class PipelineLayout;
@ -60,6 +61,7 @@ namespace d3d12 {
using BufferViewType = BufferView;
using CommandBufferType = CommandBuffer;
using DepthStencilStateType = DepthStencilState;
using DeviceType = Device;
using InputStateType = InputState;
using PipelineType = Pipeline;
using PipelineLayoutType = PipelineLayout;

View File

@ -55,6 +55,7 @@ namespace metal {
class BufferView;
class CommandBuffer;
class DepthStencilState;
class Device;
class InputState;
class Framebuffer;
class Pipeline;
@ -73,6 +74,7 @@ namespace metal {
using BufferViewType = BufferView;
using CommandBufferType = CommandBuffer;
using DepthStencilStateType = DepthStencilState;
using DeviceType = Device;
using InputStateType = InputState;
using FramebufferType = Framebuffer;
using PipelineType = Pipeline;

View File

@ -43,6 +43,7 @@ namespace null {
using BufferView = BufferViewBase;
using CommandBuffer = CommandBufferBase;
using DepthStencilState = DepthStencilStateBase;
class Device;
using InputState = InputStateBase;
using Framebuffer = FramebufferBase;
using Pipeline = PipelineBase;
@ -61,6 +62,7 @@ namespace null {
using BufferViewType = BufferView;
using CommandBufferType = CommandBuffer;
using DepthStencilStateType = DepthStencilState;
using DeviceType = Device;
using InputStateType = InputState;
using FramebufferType = Framebuffer;
using PipelineType = Pipeline;

View File

@ -39,6 +39,7 @@ namespace opengl {
class BufferView;
class CommandBuffer;
class DepthStencilState;
class Device;
class InputState;
class PersistentPipelineState;
class Pipeline;
@ -58,6 +59,7 @@ namespace opengl {
using BufferViewType = BufferView;
using CommandBufferType = CommandBuffer;
using DepthStencilStateType = DepthStencilState;
using DeviceType = Device;
using InputStateType = InputState;
using PipelineType = Pipeline;
using PipelineLayoutType = PipelineLayout;