#include <stdio.h>
#include <memory>
#include <string>
Go to the source code of this file.
|
| namespace | Ship |
| | Core namespace for the libultraship engine framework.
|
| |
◆ 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
-
| result | Receives generated shader source or diagnostic text. |
| numFloats | Receives the number of float inputs consumed by the shader. |
| cc_features | Color-combiner feature flags and mux decomposition. |
| three_point_filtering | Enables three-point filtering support in generated code. |
- Returns
- Vertex descriptor describing the shader's expected vertex layout.
◆ gfx_metal_shader_set_resource_manager()
Sets the ResourceManager used by Metal shader generation/loading helpers.