VisuTwin Canvas
C++ 3D Engine — Metal Backend
Loading...
Searching...
No Matches
metalUtils.h File Reference
#include <simd/simd.h>
#include <Metal/Metal.hpp>
#include "core/math/matrix4.h"
#include "platform/graphics/constants.h"
#include "platform/graphics/renderTarget.h"
#include "scene/mesh.h"

Go to the source code of this file.

Classes

class  visutwin::canvas::metal::MetalBackBufferRenderTarget
 Backbuffer sentinel target — preserves JS renderTarget/backBuffer identity semantics. More...

Namespaces

namespace  visutwin
namespace  visutwin::canvas
namespace  visutwin::canvas::metal

Functions

MTL::Texture * visutwin::canvas::metal::createDepthTexture (MTL::Device *device, const int width, const int height)
 Create a Depth32Float texture for the back buffer depth attachment.
MTL::CullMode visutwin::canvas::metal::toMetalCullMode (const CullMode cullMode)
 Map engine CullMode to Metal CullMode.
MTL::PrimitiveType visutwin::canvas::metal::toMetalPrimitiveType (const PrimitiveType primitiveType)
 Map engine PrimitiveType to Metal PrimitiveType.
simd::float4x4 visutwin::canvas::metal::toSimdMatrix (const Matrix4 &matrix)
 Convert a column-major Matrix4 to a SIMD float4x4.