libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
gfx_metal_shader.h File Reference
#include <stdio.h>
#include <memory>
#include <string>
Include dependency graph for gfx_metal_shader.h:

Go to the source code of this file.

Namespaces

namespace  Ship
 Core namespace for the libultraship engine framework.
 

Functions

void gfx_metal_shader_set_resource_manager (std::shared_ptr< Ship::ResourceManager > resourceManager)
 Sets the ResourceManager used by Metal shader generation/loading helpers.
 
MTL::VertexDescriptor * gfx_metal_build_shader (std::string &result, size_t &numFloats, const CCFeatures &cc_features, bool three_point_filtering)
 Builds a Metal shader pair for the given combiner features.
 

Function Documentation

◆ gfx_metal_build_shader()

MTL::VertexDescriptor * gfx_metal_build_shader ( std::string &  result,
size_t &  numFloats,
const CCFeatures &  cc_features,
bool  three_point_filtering 
)

Builds a Metal shader pair for the given combiner features.

Parameters
resultReceives generated shader source or diagnostic text.
numFloatsReceives the number of float inputs consumed by the shader.
cc_featuresColor-combiner feature flags and mux decomposition.
three_point_filteringEnables three-point filtering support in generated code.
Returns
Vertex descriptor describing the shader's expected vertex layout.

◆ gfx_metal_shader_set_resource_manager()

void gfx_metal_shader_set_resource_manager ( std::shared_ptr< Ship::ResourceManager resourceManager)

Sets the ResourceManager used by Metal shader generation/loading helpers.