|
3DRadSpace 0.1.0Alpha
3DRadSpace is a free, simple to use, rapid application development game engine.
|
#include <IGraphicsDevice.hpp>


Public Member Functions | |
| string | BackendName () |
| IDepthStencilState | GetDepthStencilState () |
| IRasterizerState | GetRasterizerState () |
| Point | GetResolution () |
| IRenderTarget | GetBackBuffer () |
| ITexture2D | GetBackBufferTexture () |
| IDepthStencilBuffer | GetDepthBuffer () |
| IBlendState | CreateBlendState (bool alphaCoverage, bool indepedentBlend, RenderTargetBlendState[] renderTargetBlendStates) |
| IBlendState | CreateBlendState_Opaque () |
| IBlendState | CreateBlendState_AlphaBlend () |
| IBlendState | CreateBlendState_Additive () |
| IBlendState | CreateBlendState_NonPremultiplied () |
| IDepthStencilBuffer | CreateDepthStencilBuffer (ulong x, ulong y) |
| IDepthStencilState | CreateDepthStencilState (bool EnableDepth, DepthWriteMask Mask, ComparisonFunction Function, bool EnableStencil, byte ReadMask, byte WriteMask, FaceOperation FrontFace, FaceOperation BackFace) |
| IDepthStencilState | CreateDepthStencilState_DepthDefault () |
| IDepthStencilState | CreateDepthStencilState_DepthNone () |
| IDepthStencilState | CreateDepthStencilState_DepthRead () |
| IDepthStencilState | CreateDepthStencilState_DepthReverseZ () |
| IDepthStencilState | CreateDepthStencilState_DepthReadReverseZ () |
| IShaderCompiler | ShaderCompiler () |
| ITexture2D | WhiteBlank () |
| Returns a white blank texture. | |
| IVertexBuffer | GetScreenQuad () |
| IIndexBuffer | CreateIndexBuffer (Span< uint > indices) |
| IIndexBuffer | CreateIndexBuffer (ulong numIndices, BufferUsage usage) |
| IRasterizerState | CreateRasterizerState (RasterizerFillMode filling=RasterizerFillMode.Solid, RasterizerCullMode culling=RasterizerCullMode.CullBack, bool switchFrontBack=false, int depthBias=0, float depthBiasClamp=0, float slopeScaleDepthBias=0, bool depthClip=false, bool scissor=false, bool multisample=false, bool aaLine=false) |
| IRasterizerState | CreateRasterizerState_CullNone () |
| IRasterizerState | CreateRasterizerState_CullClockwise () |
| IRasterizerState | CreateRasterizerState_CullCounterClockwise () |
| IRasterizerState | CreateRasterizerState_Wireframe () |
| IRenderTarget | CreateRenderTarget (ulong x, ulong y, PixelFormat format) |
| ISamplerState | CreateSamplerState () |
| ISamplerState | CreateSamplerState (TextureFilter filter, TextureAddressMode addressU, TextureAddressMode addressV, TextureAddressMode addressW, float mipLODBias, uint maxAnisotropy, ComparisonFunction comparisonFunc, Math.Color borderColor, float minLOD, float maxLOD) |
| ISamplerState | CreateSamplerState_LinearClamp () |
| ISamplerState | CreateSamplerState_LinearWrap () |
| ISamplerState | CreateSamplerState_PointClamp () |
| ISamplerState | CreateSamplerState_PointWrap () |
| ISamplerState | CreateSamplerState_AnisotropicClamp () |
| ISamplerState | CreateSamplerState_AnisotropicWrap () |
| ITexture1D | CreateTexture1D (ulong size, BufferUsage usage) |
| ITexture1D | CreateTexture1D (Span< Math.Color > colors) |
| ITexture2D | CreateTexture2D (IntPtr data, ulong x, ulong y, PixelFormat format, BufferUsage usage) |
| ITexture2D | CreateTexture2D (string path) |
| ITextureCube | CreateTextureCube (ITexture2D[] cubeMap) |
| ITextureCube | CreateTextureCube (string path) |
| ITexture3D | CreateTexture3D (ITexture3D[] textures) |
| IVertexBuffer | CreateVertexBuffer (IntPtr data, ulong structSize, ulong numVertices, BufferUsage usage) |
| IGraphicsCommandList | CreateCommandList () |
| IGraphicsCommandList | ImmediateContext () |
| IntPtr | NativeHandle () |
| virtual std::string_view | BackendName () const noexcept=0 |
| virtual std::unique_ptr< IDepthStencilState > | GetDepthStencilState ()=0 |
| Gets the depth stencil buffer that's currently set. | |
| virtual std::unique_ptr< IRasterizerState > | GetRasterizerState ()=0 |
| Gets the current blend state. | |
| virtual Math::Point | Resolution () const noexcept=0 |
| Gets the backbuffer size. | |
| virtual IRenderTarget * | GetBackBuffer () const noexcept=0 |
| Gets the backbuffer render target view. | |
| virtual ITexture2D * | GetBackBufferTexture () const noexcept=0 |
| Gets the backbuffer texture. | |
| virtual IDepthStencilBuffer & | GetDepthBuffer ()=0 |
| Gets the default depth stencil buffer. | |
| virtual std::unique_ptr< IBlendState > | CreateBlendState (bool alphaCoverage, bool indepedentBlend, std::array< RenderTargetBlendState, 8 > renderTargetBlendStates)=0 |
| Creates a new blend state. | |
| virtual std::unique_ptr< IBlendState > | CreateBlendState_Opaque ()=0 |
| Creates a new opaque blend state. | |
| virtual std::unique_ptr< IBlendState > | CreateBlendState_AlphaBlend ()=0 |
| Creates a new alpha blend state. | |
| virtual std::unique_ptr< IBlendState > | CreateBlendState_Additive ()=0 |
| Creates a new additive blend state. | |
| virtual std::unique_ptr< IBlendState > | CreateBlendState_NonPremultiplied ()=0 |
| Creates a new non-premultiplied blend state. | |
| virtual std::unique_ptr< IDepthStencilBuffer > | CreateDepthStencilBuffer (size_t x, size_t y)=0 |
| Creates a new depth stencil buffer with the specified dimensions. | |
| virtual std::unique_ptr< IDepthStencilState > | CreateDepthStencilState (bool EnableDepth, DepthWriteMask Mask, ComparisonFunction Function, bool EnableStencil, uint8_t ReadMask, uint8_t WriteMask, FaceOperation FrontFace, FaceOperation BackFace)=0 |
| Creates a new depth stencil state with the specified parameters. | |
| virtual std::unique_ptr< IDepthStencilState > | CreateDepthStencilState_DepthDefault ()=0 |
| Creates a new default depth stencil state with depth testing enabled, depth writes enabled, and the comparison function set to less than or equal. | |
| virtual std::unique_ptr< IDepthStencilState > | CreateDepthStencilState_DepthNone ()=0 |
| Creates a new depth stencil state with depth testing disabled and depth writes disabled. | |
| virtual std::unique_ptr< IDepthStencilState > | CreateDepthStencilState_DepthRead ()=0 |
| Creates a new depth stencil state with depth testing enabled, depth writes disabled, and the comparison function set to less than or equal. | |
| virtual std::unique_ptr< IDepthStencilState > | CreateDepthStencilState_DepthReverseZ ()=0 |
| Creates a new depth stencil state with depth testing enabled, depth writes enabled, and the comparison function set to greater than or equal. | |
| virtual std::unique_ptr< IDepthStencilState > | CreateDepthStencilState_DepthReadReverseZ ()=0 |
| Creates a new depth stencil state with depth testing enabled, depth writes disabled, and the comparison function set to greater than or equal. | |
| virtual IShaderCompiler * | ShaderCompiler ()=0 |
| Gets the associated shader compiler class. | |
| virtual ITexture2D * | WhiteBlank ()=0 |
| virtual IVertexBuffer * | GetScreenQuad () const noexcept=0 |
| Gets an vertex buffer that covers the entire backbuffer. | |
| virtual std::unique_ptr< IIndexBuffer > | CreateIndexBuffer (std::span< unsigned > indices)=0 |
| Creates a new index buffer from the specified indices. | |
| virtual std::unique_ptr< IIndexBuffer > | CreateIndexBuffer (size_t numIndices, BufferUsage usage)=0 |
| Creates a new index buffer with data not set. | |
| virtual std::unique_ptr< IRasterizerState > | CreateRasterizerState (RasterizerFillMode filling=RasterizerFillMode::Solid, RasterizerCullMode culling=RasterizerCullMode::CullBack, bool switchFrontBack=false, int depthBias=0, float depthBiasClamp=0, float slopeScaleDepthBias=0, bool depthClip=false, bool scissor=false, bool multisample=false, bool aaLine=false)=0 |
| Creates a new rasterizer state with the specified parameters. | |
| virtual std::unique_ptr< IRasterizerState > | CreateRasterizerState_CullNone ()=0 |
| Creates a new rasterizer state with culling disabled. | |
| virtual std::unique_ptr< IRasterizerState > | CreateRasterizerState_CullClockwise ()=0 |
| Creates a new rasterizer state with clockwise culling. | |
| virtual std::unique_ptr< IRasterizerState > | CreateRasterizerState_CullCounterClockwise ()=0 |
| Creates a new rasterizer state with counter-clockwise culling. | |
| virtual std::unique_ptr< IRasterizerState > | CreateRasterizerState_Wireframe ()=0 |
| Creates a new rasterizer state with wireframe fill mode. | |
| virtual std::unique_ptr< IRenderTarget > | CreateRenderTarget (size_t x, size_t y, PixelFormat format)=0 |
| Creates a new render target with the specified dimensions and pixel format. | |
| virtual std::unique_ptr< ISamplerState > | CreateSamplerState ()=0 |
| Creates a new texture sampler state with default parameters. | |
| virtual std::unique_ptr< ISamplerState > | CreateSamplerState (TextureFilter filter, TextureAddressMode addressU, TextureAddressMode addressV, TextureAddressMode addressW, float mipLODBias, unsigned maxAnisotropy, ComparisonFunction comparisonFunc, const Math::Color &borderColor, float minLOD, float maxLOD)=0 |
| Creates a new texture sampler state with the specified parameters. | |
| virtual std::unique_ptr< ISamplerState > | CreateSamplerState_LinearClamp ()=0 |
| Creates a new sampler state using linear filtering with clamp addressing on all axes. | |
| virtual std::unique_ptr< ISamplerState > | CreateSamplerState_LinearWrap ()=0 |
| Creates a new sampler state using linear filtering with wrap addressing on all axes. | |
| virtual std::unique_ptr< ISamplerState > | CreateSamplerState_PointClamp ()=0 |
| Creates a new sampler state using point filtering with clamp addressing on all axes. | |
| virtual std::unique_ptr< ISamplerState > | CreateSamplerState_PointWrap ()=0 |
| Creates a new sampler state using point filtering with wrap addressing on all axes. | |
| virtual std::unique_ptr< ISamplerState > | CreateSamplerState_AnisotropicClamp ()=0 |
| Creates a new sampler state using anisotropic filtering with clamp addressing on all axes. | |
| virtual std::unique_ptr< ISamplerState > | CreateSamplerState_AnisotropicWrap ()=0 |
| Creates a new sampler state using anisotropic filtering with wrap addressing on all axes. | |
| virtual std::unique_ptr< ITexture1D > | CreateTexture1D (size_t numElements, PixelFormat format)=0 |
| Creates a new 1D texture with the specified number of elements and pixel format. | |
| virtual std::unique_ptr< ITexture1D > | CreateTexture1D (std::span< Math::Color > colors)=0 |
| Creates a new 1D texture initialized with the specified colors. | |
| virtual std::unique_ptr< ITexture2D > | CreateTexture2D (void *data, size_t x, size_t y, PixelFormat format, BufferUsage usage)=0 |
| Creates a new 2D texture with the specified dimensions, pixel format, and initial data. | |
| virtual std::unique_ptr< ITexture2D > | CreateTexture2D (const std::filesystem::path &path)=0 |
| Creates a new 2D texture by loading it from an image file. | |
| virtual std::unique_ptr< IVertexBuffer > | CreateVertexBuffer (const void *data, size_t structSize, size_t numVertices, BufferUsage usage)=0 |
| Creates a new vertex buffer from raw vertex data. | |
| virtual std::unique_ptr< ITextureCube > | CreateTextureCube (const std::filesystem::path &path)=0 |
| Creates a new cube texture by loading it from a file. | |
| virtual std::unique_ptr< ITextureCube > | CreateTextureCube (std::array< ITexture2D *, 6 > cubeMap)=0 |
| Creates a new cube texture from six individual 2D textures, one for each face. | |
| virtual std::unique_ptr< ITexture3D > | CreateTexture3D (std::span< ITexture2D * > textures)=0 |
| Creates a new 3D texture from a span of 2D textures, each representing a depth slice. | |
| template<VertexDecl V> | |
| std::unique_ptr< IVertexBuffer > | CreateVertexBuffer (std::span< const V > vertices, BufferUsage usage) |
| Creates a new vertex buffer from a span of strongly-typed, const vertices. | |
| template<VertexDecl V> | |
| std::unique_ptr< IVertexBuffer > | CreateVertexBuffer (std::span< V > vertices, BufferUsage usage) |
| Creates a new vertex buffer from a span of strongly-typed vertices. | |
| template<VertexDecl V> | |
| std::unique_ptr< IVertexBuffer > | CreateVertexBuffer (size_t numVertices, BufferUsage usage) |
| Creates a new, uninitialized vertex buffer sized for the specified strongly-typed vertex count. | |
| virtual std::unique_ptr< IGraphicsCommandList > | CreateCommandList ()=0 |
| Creates a new deferred graphics command list for recording rendering commands. | |
| virtual IGraphicsCommandList * | ImmediateContext ()=0 |
| Gets the immediate graphics command list associated with this device. | |
| virtual void * | NativeHandle () const noexcept=0 |
| Gets the underlying native handle of this graphics device (e.g. an ID3D11Device pointer). | |
| virtual | ~IGraphicsDevice () override=default |
| Public Member Functions inherited from Engine3DRadSpace.IService | |
| IGame * | GetOwner () const noexcept |
| Gets the owner of this instance. | |
| virtual | ~IService ()=default |
Public Attributes | |
| bool | EnableVSync = true |
Protected Member Functions | |
| IGraphicsDevice ()=default | |
| IGraphicsDevice (const IGraphicsDevice &)=delete | |
| IGraphicsDevice & | operator= (const IGraphicsDevice &)=delete |
| IGraphicsDevice (IGraphicsDevice &&) noexcept=default | |
| IGraphicsDevice & | operator= (IGraphicsDevice &&) noexcept=default |
| Protected Member Functions inherited from Engine3DRadSpace.IService | |
| IService () | |
| IService (IGame *owner) | |
| IService (const IService &)=delete | |
| IService & | operator= (const IService &)=delete |
| IService (IService &&) noexcept=default | |
| IService & | operator= (IService &&) noexcept=default |
Additional Inherited Members | |
| Protected Attributes inherited from Engine3DRadSpace.IService | |
| IGame * | _owner = nullptr |
| Properties inherited from Engine3DRadSpace.IPtrWrapper | |
| IntPtr | Handle [get] |
| Properties inherited from Engine3DRadSpace.IService | |
| IGame | Owner [get] |
|
protecteddefault |
|
protecteddelete |
|
protecteddefaultnoexcept |
|
overridevirtualdefault |
| string Engine3DRadSpace.Graphics.IGraphicsDevice.BackendName | ( | ) |
|
pure virtualnoexcept |
| IBlendState Engine3DRadSpace.Graphics.IGraphicsDevice.CreateBlendState | ( | bool | alphaCoverage, |
| bool | indepedentBlend, | ||
| RenderTargetBlendState[] | renderTargetBlendStates ) |
|
pure virtual |
Creates a new blend state.
| alphaCoverage | Indicates whether alpha coverage is enabled. |
| indepedentBlend | Indicates whether independent blend is enabled. |
| renderTargetBlendStates | Array of render target blend states. |
Implemented in Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| IBlendState Engine3DRadSpace.Graphics.IGraphicsDevice.CreateBlendState_Additive | ( | ) |
|
pure virtual |
Creates a new additive blend state.
Implemented in Engine3DRadSpace.Graphics.InstIGraphicsDevice, Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| IBlendState Engine3DRadSpace.Graphics.IGraphicsDevice.CreateBlendState_AlphaBlend | ( | ) |
|
pure virtual |
Creates a new alpha blend state.
Implemented in Engine3DRadSpace.Graphics.InstIGraphicsDevice, Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| IBlendState Engine3DRadSpace.Graphics.IGraphicsDevice.CreateBlendState_NonPremultiplied | ( | ) |
|
pure virtual |
Creates a new non-premultiplied blend state.
Implemented in Engine3DRadSpace.Graphics.InstIGraphicsDevice, Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| IBlendState Engine3DRadSpace.Graphics.IGraphicsDevice.CreateBlendState_Opaque | ( | ) |
|
pure virtual |
Creates a new opaque blend state.
Implemented in Engine3DRadSpace.Graphics.InstIGraphicsDevice, Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| IGraphicsCommandList Engine3DRadSpace.Graphics.IGraphicsDevice.CreateCommandList | ( | ) |
|
pure virtual |
Creates a new deferred graphics command list for recording rendering commands.
Implemented in Engine3DRadSpace.Graphics.InstIGraphicsDevice, Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| IDepthStencilBuffer Engine3DRadSpace.Graphics.IGraphicsDevice.CreateDepthStencilBuffer | ( | ulong | x, |
| ulong | y ) |
|
pure virtual |
Creates a new depth stencil buffer with the specified dimensions.
| x | The width of the depth stencil buffer. |
| y | The height of the depth stencil buffer. |
Implemented in Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| IDepthStencilState Engine3DRadSpace.Graphics.IGraphicsDevice.CreateDepthStencilState | ( | bool | EnableDepth, |
| DepthWriteMask | Mask, | ||
| ComparisonFunction | Function, | ||
| bool | EnableStencil, | ||
| byte | ReadMask, | ||
| byte | WriteMask, | ||
| FaceOperation | FrontFace, | ||
| FaceOperation | BackFace ) |
|
pure virtual |
Creates a new depth stencil state with the specified parameters.
| EnableDepth | Indicates whether depth testing is enabled. |
| Mask | Specifies the depth write mask. |
| Function | Specifies the depth comparison function. |
| EnableStencil | Indicates whether stencil testing is enabled. |
| ReadMask | Specifies the stencil read mask. |
| WriteMask | Specifies the stencil write mask. |
| FrontFace | Specifies the stencil operations for front-facing polygons. |
| BackFace | Specifies the stencil operations for back-facing polygons. |
Implemented in Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| IDepthStencilState Engine3DRadSpace.Graphics.IGraphicsDevice.CreateDepthStencilState_DepthDefault | ( | ) |
|
pure virtual |
Creates a new default depth stencil state with depth testing enabled, depth writes enabled, and the comparison function set to less than or equal.
Implemented in Engine3DRadSpace.Graphics.InstIGraphicsDevice, Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| IDepthStencilState Engine3DRadSpace.Graphics.IGraphicsDevice.CreateDepthStencilState_DepthNone | ( | ) |
|
pure virtual |
Creates a new depth stencil state with depth testing disabled and depth writes disabled.
Implemented in Engine3DRadSpace.Graphics.InstIGraphicsDevice, Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| IDepthStencilState Engine3DRadSpace.Graphics.IGraphicsDevice.CreateDepthStencilState_DepthRead | ( | ) |
|
pure virtual |
Creates a new depth stencil state with depth testing enabled, depth writes disabled, and the comparison function set to less than or equal.
Implemented in Engine3DRadSpace.Graphics.InstIGraphicsDevice, Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| IDepthStencilState Engine3DRadSpace.Graphics.IGraphicsDevice.CreateDepthStencilState_DepthReadReverseZ | ( | ) |
|
pure virtual |
Creates a new depth stencil state with depth testing enabled, depth writes disabled, and the comparison function set to greater than or equal.
Implemented in Engine3DRadSpace.Graphics.InstIGraphicsDevice, Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| IDepthStencilState Engine3DRadSpace.Graphics.IGraphicsDevice.CreateDepthStencilState_DepthReverseZ | ( | ) |
|
pure virtual |
Creates a new depth stencil state with depth testing enabled, depth writes enabled, and the comparison function set to greater than or equal.
Implemented in Engine3DRadSpace.Graphics.InstIGraphicsDevice, Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| IIndexBuffer Engine3DRadSpace.Graphics.IGraphicsDevice.CreateIndexBuffer | ( | Span< uint > | indices | ) |
| IIndexBuffer Engine3DRadSpace.Graphics.IGraphicsDevice.CreateIndexBuffer | ( | ulong | numIndices, |
| BufferUsage | usage ) |
|
pure virtual |
Creates a new index buffer with data not set.
| numIndices | Number of indices |
| usage | Buffer usage |
Implemented in Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
|
pure virtual |
Creates a new index buffer from the specified indices.
| indices | Span of indices |
Implemented in Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| IRasterizerState Engine3DRadSpace.Graphics.IGraphicsDevice.CreateRasterizerState | ( | RasterizerFillMode | filling = RasterizerFillMode.Solid, |
| RasterizerCullMode | culling = RasterizerCullMode.CullBack, | ||
| bool | switchFrontBack = false, | ||
| int | depthBias = 0, | ||
| float | depthBiasClamp = 0, | ||
| float | slopeScaleDepthBias = 0, | ||
| bool | depthClip = false, | ||
| bool | scissor = false, | ||
| bool | multisample = false, | ||
| bool | aaLine = false ) |
|
pure virtual |
Creates a new rasterizer state with the specified parameters.
| filling | Rasterizer fill mode |
| culling | Rasterizer cull mode |
| switchFrontBack | Whether to switch front and back faces |
| depthBias | Depth bias |
| depthBiasClamp | Depth bias clamp |
| slopeScaleDepthBias | Slope scale depth bias |
| depthClip | Whether to enable depth clipping |
| scissor | Whether to enable scissor testing |
| multisample | Whether to enable multisampling |
| aaLine | Whether to enable anti-aliased lines |
Implemented in Engine3DRadSpace.Graphics.InstIGraphicsDevice, Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| IRasterizerState Engine3DRadSpace.Graphics.IGraphicsDevice.CreateRasterizerState_CullClockwise | ( | ) |
|
pure virtual |
Creates a new rasterizer state with clockwise culling.
Implemented in Engine3DRadSpace.Graphics.InstIGraphicsDevice, Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| IRasterizerState Engine3DRadSpace.Graphics.IGraphicsDevice.CreateRasterizerState_CullCounterClockwise | ( | ) |
|
pure virtual |
Creates a new rasterizer state with counter-clockwise culling.
Implemented in Engine3DRadSpace.Graphics.InstIGraphicsDevice, Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| IRasterizerState Engine3DRadSpace.Graphics.IGraphicsDevice.CreateRasterizerState_CullNone | ( | ) |
|
pure virtual |
Creates a new rasterizer state with culling disabled.
Implemented in Engine3DRadSpace.Graphics.InstIGraphicsDevice, Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| IRasterizerState Engine3DRadSpace.Graphics.IGraphicsDevice.CreateRasterizerState_Wireframe | ( | ) |
|
pure virtual |
Creates a new rasterizer state with wireframe fill mode.
Implemented in Engine3DRadSpace.Graphics.InstIGraphicsDevice, Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| IRenderTarget Engine3DRadSpace.Graphics.IGraphicsDevice.CreateRenderTarget | ( | ulong | x, |
| ulong | y, | ||
| PixelFormat | format ) |
|
pure virtual |
Creates a new render target with the specified dimensions and pixel format.
| x | Width of the render target |
| y | Height of the render target |
| format | Pixel format of the render target |
Implemented in Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| ISamplerState Engine3DRadSpace.Graphics.IGraphicsDevice.CreateSamplerState | ( | ) |
| ISamplerState Engine3DRadSpace.Graphics.IGraphicsDevice.CreateSamplerState | ( | TextureFilter | filter, |
| TextureAddressMode | addressU, | ||
| TextureAddressMode | addressV, | ||
| TextureAddressMode | addressW, | ||
| float | mipLODBias, | ||
| uint | maxAnisotropy, | ||
| ComparisonFunction | comparisonFunc, | ||
| Math.Color | borderColor, | ||
| float | minLOD, | ||
| float | maxLOD ) |
|
pure virtual |
Creates a new texture sampler state with default parameters.
Implemented in Engine3DRadSpace.Graphics.InstIGraphicsDevice, Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
|
pure virtual |
Creates a new texture sampler state with the specified parameters.
| filter | Texture filtering mode to use for minification, magnification, and mip-level sampling |
| addressU | Addressing mode for the U texture coordinate |
| addressV | Addressing mode for the V texture coordinate |
| addressW | Addressing mode for the W texture coordinate |
| mipLODBias | Offset applied to the calculated mipmap level |
| maxAnisotropy | Clamping value used when the filter is anisotropic |
| comparisonFunc | Comparison function used when sampling with a comparison filter |
| borderColor | Border color used when an address mode is set to Border |
| minLOD | Lower end of the mipmap range to clamp access to |
| maxLOD | Upper end of the mipmap range to clamp access to |
| ISamplerState Engine3DRadSpace.Graphics.IGraphicsDevice.CreateSamplerState_AnisotropicClamp | ( | ) |
|
pure virtual |
Creates a new sampler state using anisotropic filtering with clamp addressing on all axes.
Implemented in Engine3DRadSpace.Graphics.InstIGraphicsDevice, Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| ISamplerState Engine3DRadSpace.Graphics.IGraphicsDevice.CreateSamplerState_AnisotropicWrap | ( | ) |
|
pure virtual |
Creates a new sampler state using anisotropic filtering with wrap addressing on all axes.
Implemented in Engine3DRadSpace.Graphics.InstIGraphicsDevice, Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| ISamplerState Engine3DRadSpace.Graphics.IGraphicsDevice.CreateSamplerState_LinearClamp | ( | ) |
|
pure virtual |
Creates a new sampler state using linear filtering with clamp addressing on all axes.
Implemented in Engine3DRadSpace.Graphics.InstIGraphicsDevice, Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| ISamplerState Engine3DRadSpace.Graphics.IGraphicsDevice.CreateSamplerState_LinearWrap | ( | ) |
|
pure virtual |
Creates a new sampler state using linear filtering with wrap addressing on all axes.
Implemented in Engine3DRadSpace.Graphics.InstIGraphicsDevice, Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| ISamplerState Engine3DRadSpace.Graphics.IGraphicsDevice.CreateSamplerState_PointClamp | ( | ) |
|
pure virtual |
Creates a new sampler state using point filtering with clamp addressing on all axes.
Implemented in Engine3DRadSpace.Graphics.InstIGraphicsDevice, Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| ISamplerState Engine3DRadSpace.Graphics.IGraphicsDevice.CreateSamplerState_PointWrap | ( | ) |
|
pure virtual |
Creates a new sampler state using point filtering with wrap addressing on all axes.
Implemented in Engine3DRadSpace.Graphics.InstIGraphicsDevice, Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| ITexture1D Engine3DRadSpace.Graphics.IGraphicsDevice.CreateTexture1D | ( | Span< Math.Color > | colors | ) |
| ITexture1D Engine3DRadSpace.Graphics.IGraphicsDevice.CreateTexture1D | ( | ulong | size, |
| BufferUsage | usage ) |
|
pure virtual |
Creates a new 1D texture with the specified number of elements and pixel format.
| numElements | Number of elements (texels) in the texture |
| format | Pixel format of the texture |
Implemented in Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
|
pure virtual |
Creates a new 1D texture initialized with the specified colors.
| colors | Span of colors used to initialize the texture |
Implemented in Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| ITexture2D Engine3DRadSpace.Graphics.IGraphicsDevice.CreateTexture2D | ( | IntPtr | data, |
| ulong | x, | ||
| ulong | y, | ||
| PixelFormat | format, | ||
| BufferUsage | usage ) |
| ITexture2D Engine3DRadSpace.Graphics.IGraphicsDevice.CreateTexture2D | ( | string | path | ) |
|
pure virtual |
Creates a new 2D texture by loading it from an image file.
| path | Path to the image file |
Implemented in Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
|
pure virtual |
Creates a new 2D texture with the specified dimensions, pixel format, and initial data.
| data | Pointer to the initial texture data, or nullptr to leave the texture uninitialized |
| x | Width of the texture |
| y | Height of the texture |
| format | Pixel format of the texture |
| usage | Buffer usage of the texture |
Implemented in Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| ITexture3D Engine3DRadSpace.Graphics.IGraphicsDevice.CreateTexture3D | ( | ITexture3D[] | textures | ) |
|
pure virtual |
Creates a new 3D texture from a span of 2D textures, each representing a depth slice.
| textures | Span of 2D textures used as depth slices |
Implemented in Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| ITextureCube Engine3DRadSpace.Graphics.IGraphicsDevice.CreateTextureCube | ( | ITexture2D[] | cubeMap | ) |
| ITextureCube Engine3DRadSpace.Graphics.IGraphicsDevice.CreateTextureCube | ( | string | path | ) |
|
pure virtual |
Creates a new cube texture by loading it from a file.
| path | Path to the cube map file |
Implemented in Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
|
pure virtual |
Creates a new cube texture from six individual 2D textures, one for each face.
| cubeMap | Array of six 2D textures, in the order +X, -X, +Y, -Y, +Z, -Z |
Implemented in Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| IVertexBuffer Engine3DRadSpace.Graphics.IGraphicsDevice.CreateVertexBuffer | ( | IntPtr | data, |
| ulong | structSize, | ||
| ulong | numVertices, | ||
| BufferUsage | usage ) |
|
pure virtual |
Creates a new vertex buffer from raw vertex data.
| data | Pointer to the initial vertex data, or nullptr to leave the buffer uninitialized |
| structSize | Size, in bytes, of a single vertex structure |
| numVertices | Number of vertices in the buffer |
| usage | Buffer usage of the vertex buffer |
Implemented in Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
|
inline |
Creates a new, uninitialized vertex buffer sized for the specified strongly-typed vertex count.
| V | Vertex declaration type |
| numVertices | Number of vertices the buffer should hold |
| usage | Buffer usage of the vertex buffer |
|
inline |
Creates a new vertex buffer from a span of strongly-typed, const vertices.
| V | Vertex declaration type |
| vertices | Span of vertices used to initialize the buffer |
| usage | Buffer usage of the vertex buffer |
|
inline |
Creates a new vertex buffer from a span of strongly-typed vertices.
| V | Vertex declaration type |
| vertices | Span of vertices used to initialize the buffer |
| usage | Buffer usage of the vertex buffer |
| IRenderTarget Engine3DRadSpace.Graphics.IGraphicsDevice.GetBackBuffer | ( | ) |
|
pure virtualnoexcept |
Gets the backbuffer render target view.
Implemented in Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| ITexture2D Engine3DRadSpace.Graphics.IGraphicsDevice.GetBackBufferTexture | ( | ) |
|
pure virtualnoexcept |
Gets the backbuffer texture.
Implemented in Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| IDepthStencilBuffer Engine3DRadSpace.Graphics.IGraphicsDevice.GetDepthBuffer | ( | ) |
|
pure virtual |
Gets the default depth stencil buffer.
Implemented in Engine3DRadSpace.Graphics.InstIGraphicsDevice, Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| IDepthStencilState Engine3DRadSpace.Graphics.IGraphicsDevice.GetDepthStencilState | ( | ) |
|
pure virtual |
Gets the depth stencil buffer that's currently set.
Implemented in Engine3DRadSpace.Graphics.InstIGraphicsDevice, Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| IRasterizerState Engine3DRadSpace.Graphics.IGraphicsDevice.GetRasterizerState | ( | ) |
|
pure virtual |
Gets the current blend state.
Implemented in Engine3DRadSpace.Graphics.InstIGraphicsDevice, Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| Point Engine3DRadSpace.Graphics.IGraphicsDevice.GetResolution | ( | ) |
| IVertexBuffer Engine3DRadSpace.Graphics.IGraphicsDevice.GetScreenQuad | ( | ) |
|
pure virtualnoexcept |
Gets an vertex buffer that covers the entire backbuffer.
Implemented in Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| IGraphicsCommandList Engine3DRadSpace.Graphics.IGraphicsDevice.ImmediateContext | ( | ) |
|
pure virtual |
Gets the immediate graphics command list associated with this device.
Implemented in Engine3DRadSpace.Graphics.InstIGraphicsDevice, Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| IntPtr Engine3DRadSpace.Graphics.IGraphicsDevice.NativeHandle | ( | ) |
|
pure virtualnoexcept |
Gets the underlying native handle of this graphics device (e.g. an ID3D11Device pointer).
Implemented in Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
|
protecteddelete |
|
protecteddefaultnoexcept |
|
pure virtualnoexcept |
Gets the backbuffer size.
Implemented in Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| IShaderCompiler Engine3DRadSpace.Graphics.IGraphicsDevice.ShaderCompiler | ( | ) |
|
pure virtual |
Gets the associated shader compiler class.
summmary> Returns a 2x2 blank white texture. /summary>
Implemented in Engine3DRadSpace.Graphics.InstIGraphicsDevice, Engine3DRadSpace.Graphics::DirectX11::GraphicsDevice, and Engine3DRadSpace.Graphics::Null::GraphicsDevice.
| ITexture2D Engine3DRadSpace.Graphics.IGraphicsDevice.WhiteBlank | ( | ) |
Returns a white blank texture.
|
pure virtual |
| bool Engine3DRadSpace.Graphics.IGraphicsDevice.EnableVSync = true |