|
CeresEngine 0.2.0
A game development framework
|
A class that contains general utility methods for the renderer. More...
#include <CeresEngine/Renderer/RendererUtility.hpp>
Static Public Member Functions | |
| static Matrix4 | getCubeMapProjection (double near=0.1, double far=10.0) |
| Gets the cube map projection matrix. | |
| static const Array< Matrix4, 6 > & | getCubeMapViews () |
| An array of views for cube map projections. | |
| static const Matrix4 & | getCubeMapView (UInt32 layer) |
Gets the cube map projection view matrix for the given layer. | |
| static GPUVertexFormat | createVertexFormat (const VertexDeclaration &vertexDeclaration) |
Converts the VertexDeclaration into a GPUVertexFormat for a shader. | |
| static GPUVertexFormat | createVertexFormat (const VertexBufferLayout &layout) |
| static const GPUVertexFormat & | getDefaultMeshVertexFormat () |
| static GPUBufferSize | getBindlessBufferAlignment (GPUDevice &device) |
| Gets the optimal bindless buffer alignment for consecutive objects. | |
| static GPUBufferSize | getBindlessBufferAlignment (const GPUDevicePtr &device) |
| Gets the optimal bindless buffer alignment for consecutive objects. | |
A class that contains general utility methods for the renderer.
|
static |
|
static |
Converts the VertexDeclaration into a GPUVertexFormat for a shader.
| vertexDeclaration | The vertex declaration to be used. |
|
inlinestatic |
Gets the optimal bindless buffer alignment for consecutive objects.
| device | The device to compute the optimal alignment for. |
|
static |
Gets the optimal bindless buffer alignment for consecutive objects.
| device | The device to compute the optimal alignment for. |
|
static |
Gets the cube map projection matrix.
| near | The near plane. 0.1 by default. |
| far | The far plane. 10.0 by default. |
Gets the cube map projection view matrix for the given layer.
| layer | The layer to get the view matrix for. |
An array of views for cube map projections.
|
static |