|
VisuTwin Canvas
C++ 3D Engine — Metal Backend
|
Classes | |
| class | BindGroup |
| class | BindGroupLayout |
| struct | BindGroupLayoutDesc |
| struct | BindGroupLayoutEntryDesc |
| class | MetalBackBufferRenderTarget |
| Backbuffer sentinel target — preserves JS renderTarget/backBuffer identity semantics. More... | |
| class | PipelineLayout |
| struct | PipelineLayoutDesc |
Enumerations | |
| enum class | BindingType { UniformBuffer , StorageBuffer , Sampler , SampledTexture , StorageTexture } |
| enum | ShaderStageFlags : uint32_t { ShaderStage_None = 0 , ShaderStage_Vertex = 1 << 0 , ShaderStage_Fragment = 1 << 1 , ShaderStage_Compute = 1 << 2 , ShaderStage_All = 0x7 } |
Functions | |
| MTL::Texture * | createDepthTexture (MTL::Device *device, const int width, const int height) |
| Create a Depth32Float texture for the back buffer depth attachment. | |
| MTL::CullMode | toMetalCullMode (const CullMode cullMode) |
| Map engine CullMode to Metal CullMode. | |
| MTL::PrimitiveType | toMetalPrimitiveType (const PrimitiveType primitiveType) |
| Map engine PrimitiveType to Metal PrimitiveType. | |
| simd::float4x4 | toSimdMatrix (const Matrix4 &matrix) |
| Convert a column-major Matrix4 to a SIMD float4x4. | |
|
strong |
| Enumerator | |
|---|---|
| UniformBuffer | |
| StorageBuffer | |
| Sampler | |
| SampledTexture | |
| StorageTexture | |
Definition at line 13 of file metalPipelineLayout.h.
| enum visutwin::canvas::metal::ShaderStageFlags : uint32_t |
| Enumerator | |
|---|---|
| ShaderStage_None | |
| ShaderStage_Vertex | |
| ShaderStage_Fragment | |
| ShaderStage_Compute | |
| ShaderStage_All | |
Definition at line 21 of file metalPipelineLayout.h.
|
inline |
Create a Depth32Float texture for the back buffer depth attachment.
Definition at line 67 of file metalUtils.h.
|
inline |
Map engine CullMode to Metal CullMode.
Definition at line 52 of file metalUtils.h.
References visutwin::canvas::CULLFACE_BACK, visutwin::canvas::CULLFACE_FRONT, visutwin::canvas::CULLFACE_FRONTANDBACK, and visutwin::canvas::CULLFACE_NONE.
|
inline |
Map engine PrimitiveType to Metal PrimitiveType.
Definition at line 32 of file metalUtils.h.
References visutwin::canvas::PRIMITIVE_LINELOOP, visutwin::canvas::PRIMITIVE_LINES, visutwin::canvas::PRIMITIVE_LINESTRIP, visutwin::canvas::PRIMITIVE_POINTS, visutwin::canvas::PRIMITIVE_TRIANGLES, visutwin::canvas::PRIMITIVE_TRIFAN, and visutwin::canvas::PRIMITIVE_TRISTRIP.
|
inline |
Convert a column-major Matrix4 to a SIMD float4x4.
Definition at line 20 of file metalUtils.h.
References visutwin::canvas::Matrix4::getElement().
Referenced by visutwin::canvas::MetalTaaPass::execute().