mk_scene_ambientfunction
uint32_t mk_scene_ambient(mk_scene_t scene)Perform the scene ambient operation.
| Parameter | Type | Description |
|---|---|---|
scene | mk_scene_t | Value for scene. |
Returns The resulting value.
#include <modkit/scene.h>51 functions · 16 structs · 2 enums · 22 typedefs · 3 macros
Optional retained scene collection and rendering orchestration.
mk_scene_ambientfunctionuint32_t mk_scene_ambient(mk_scene_t scene)Perform the scene ambient operation.
| Parameter | Type | Description |
|---|---|---|
scene | mk_scene_t | Value for scene. |
Returns The resulting value.
mk_scene_caster_generationfunctionuint64_t mk_scene_caster_generation(mk_scene_t scene)Perform the scene caster generation operation.
| Parameter | Type | Description |
|---|---|---|
scene | mk_scene_t | Value for scene. |
Returns The resulting value.
mk_scene_clear_environmentfunctionmk_result mk_scene_clear_environment(mk_scene_t scene)Clear the environment for the scene.
| Parameter | Type | Description |
|---|---|---|
scene | mk_scene_t | Value for scene. |
Returns MK_SUCCESS or an error result.
mk_scene_collectfunctionmk_result mk_scene_collect(mk_scene_t scene, const mk_scene_collect_desc *desc, mk_scene_collection_t **out_collection)Perform the scene collect operation.
| Parameter | Type | Description |
|---|---|---|
scene | mk_scene_t | Value for scene. |
desc | const mk_scene_collect_desc * | Configuration descriptor. |
out_collection | mk_scene_collection_t ** | Receives the collection. |
Returns MK_SUCCESS or an error result.
mk_scene_collection_camerafunctionmk_result mk_scene_collection_camera(const mk_scene_collection_t *collection, mk_camera *out_camera, mk_mat4 *out_view, mk_mat4 *out_projection)Perform the scene collection camera operation.
| Parameter | Type | Description |
|---|---|---|
collection | const mk_scene_collection_t * | Value for collection. |
out_camera | mk_camera * | Receives the camera. |
out_view | mk_mat4 * | Receives the view. |
out_projection | mk_mat4 * | Receives the projection. |
Returns MK_SUCCESS or an error result.
mk_scene_collection_freeze_worldfunctionmk_result mk_scene_collection_freeze_world(const mk_scene_collection_t *collection)Perform the scene collection freeze world operation.
| Parameter | Type | Description |
|---|---|---|
collection | const mk_scene_collection_t * | Value for collection. |
Returns MK_SUCCESS or an error result.
mk_scene_collection_lightsfunctionconst mk_light_desc * mk_scene_collection_lights(const mk_scene_collection_t *collection, uint32_t *out_count)Perform the scene collection lights operation.
| Parameter | Type | Description |
|---|---|---|
collection | const mk_scene_collection_t * | Value for collection. |
out_count | uint32_t * | Receives the count. |
Returns A borrowed pointer, or NULL when unavailable.
mk_scene_collection_opaquefunctionconst mk_scene_packet * mk_scene_collection_opaque(const mk_scene_collection_t *collection, uint32_t *out_count)Perform the scene collection opaque operation.
| Parameter | Type | Description |
|---|---|---|
collection | const mk_scene_collection_t * | Value for collection. |
out_count | uint32_t * | Receives the count. |
Returns A borrowed pointer, or NULL when unavailable.
mk_scene_collection_pickfunctionbool mk_scene_collection_pick(const mk_scene_collection_t *collection, mk_ray ray, uint64_t layer_mask, mk_scene_pick_hit *out_hit)Perform the scene collection pick operation.
| Parameter | Type | Description |
|---|---|---|
collection | const mk_scene_collection_t * | Value for collection. |
ray | mk_ray | Value for ray. |
layer_mask | uint64_t | Value for layer mask. |
out_hit | mk_scene_pick_hit * | Receives the hit. |
Returns True when the operation succeeds.
mk_scene_collection_releasefunctionvoid mk_scene_collection_release(mk_scene_collection_t *collection)Release scene collection.
| Parameter | Type | Description |
|---|---|---|
collection | mk_scene_collection_t * | Value for collection. |
mk_scene_collection_render_layersfunctionuint64_t mk_scene_collection_render_layers(const mk_scene_collection_t *collection)Effective render layers after the collect mask and camera mask are combined.
| Parameter | Type | Description |
|---|---|---|
collection | const mk_scene_collection_t * | Value for collection. |
Returns The resulting value.
mk_scene_collection_scene_idfunctionuint64_t mk_scene_collection_scene_id(const mk_scene_collection_t *collection)Perform the scene collection scene ID operation.
| Parameter | Type | Description |
|---|---|---|
collection | const mk_scene_collection_t * | Value for collection. |
Returns The resulting value.
mk_scene_collection_shadow_camerafunctionmk_result mk_scene_collection_shadow_camera(const mk_scene_collection_t *collection, mk_camera *out_camera)Perform the scene collection shadow camera operation.
| Parameter | Type | Description |
|---|---|---|
collection | const mk_scene_collection_t * | Value for collection. |
out_camera | mk_camera * | Receives the camera. |
Returns MK_SUCCESS or an error result.
mk_scene_collection_shadow_candidatesfunctionconst mk_scene_packet * mk_scene_collection_shadow_candidates(const mk_scene_collection_t *collection, uint32_t *out_count)Perform the scene collection shadow candidates operation.
| Parameter | Type | Description |
|---|---|---|
collection | const mk_scene_collection_t * | Value for collection. |
out_count | uint32_t * | Receives the count. |
Returns A borrowed pointer, or NULL when unavailable.
mk_scene_collection_stats_getfunctionvoid mk_scene_collection_stats_get(const mk_scene_collection_t *collection, mk_scene_collection_stats *out_stats)Get state from the scene collection stats.
| Parameter | Type | Description |
|---|---|---|
collection | const mk_scene_collection_t * | Value for collection. |
out_stats | mk_scene_collection_stats * | Receives the stats. |
mk_scene_collection_transparentfunctionconst mk_scene_packet * mk_scene_collection_transparent(const mk_scene_collection_t *collection, uint32_t *out_count)Perform the scene collection transparent operation.
| Parameter | Type | Description |
|---|---|---|
collection | const mk_scene_collection_t * | Value for collection. |
out_count | uint32_t * | Receives the count. |
Returns A borrowed pointer, or NULL when unavailable.
mk_scene_createfunctionmk_scene_t mk_scene_create(const mk_scene_desc *desc)Create scene.
| Parameter | Type | Description |
|---|---|---|
desc | const mk_scene_desc * | Configuration descriptor. |
Returns The resulting handle or value.
mk_scene_destroyfunctionmk_result mk_scene_destroy(mk_scene_t scene)Destroy the scene.
| Parameter | Type | Description |
|---|---|---|
scene | mk_scene_t | Value for scene. |
Returns MK_SUCCESS or an error result.
mk_scene_environmentfunctionbool mk_scene_environment(mk_scene_t scene, mk_scene_environment_desc *out_environment)Perform the scene environment operation.
| Parameter | Type | Description |
|---|---|---|
scene | mk_scene_t | Value for scene. |
out_environment | mk_scene_environment_desc * | Receives the environment. |
Returns True when the operation succeeds.
mk_scene_idfunctionuint64_t mk_scene_id(mk_scene_t scene)Perform the scene ID operation.
| Parameter | Type | Description |
|---|---|---|
scene | mk_scene_t | Value for scene. |
Returns The resulting value.
mk_scene_node_belongs_tofunctionbool mk_scene_node_belongs_to(mk_scene_t scene, mk_scene_node_t node)Perform the scene node belongs to operation.
| Parameter | Type | Description |
|---|---|---|
scene | mk_scene_t | Value for scene. |
node | mk_scene_node_t | Value for node. |
Returns True when the operation succeeds.
mk_scene_node_clear_camerafunctionmk_result mk_scene_node_clear_camera(mk_scene_t scene, mk_scene_node_t node)Clear the camera for the scene node.
| Parameter | Type | Description |
|---|---|---|
scene | mk_scene_t | Value for scene. |
node | mk_scene_node_t | Value for node. |
Returns MK_SUCCESS or an error result.
mk_scene_node_clear_lightfunctionmk_result mk_scene_node_clear_light(mk_scene_t scene, mk_scene_node_t node)Clear the light for the scene node.
| Parameter | Type | Description |
|---|---|---|
scene | mk_scene_t | Value for scene. |
node | mk_scene_node_t | Value for node. |
Returns MK_SUCCESS or an error result.
mk_scene_node_clear_meshfunctionmk_result mk_scene_node_clear_mesh(mk_scene_t scene, mk_scene_node_t node)Clear the mesh for the scene node.
| Parameter | Type | Description |
|---|---|---|
scene | mk_scene_t | Value for scene. |
node | mk_scene_node_t | Value for node. |
Returns MK_SUCCESS or an error result.
mk_scene_node_clear_modelfunctionmk_result mk_scene_node_clear_model(mk_scene_t scene, mk_scene_node_t node)Clear the model for the scene node.
| Parameter | Type | Description |
|---|---|---|
scene | mk_scene_t | Value for scene. |
node | mk_scene_node_t | Value for node. |
Returns MK_SUCCESS or an error result.
mk_scene_node_clear_model_instancefunctionmk_result mk_scene_node_clear_model_instance(mk_scene_t scene, mk_scene_node_t node)Clear the model instance for the scene node.
| Parameter | Type | Description |
|---|---|---|
scene | mk_scene_t | Value for scene. |
node | mk_scene_node_t | Value for node. |
Returns MK_SUCCESS or an error result.
mk_scene_node_createfunctionmk_scene_node_t mk_scene_node_create(mk_scene_t scene, mk_scene_node_t parent)Create scene node.
| Parameter | Type | Description |
|---|---|---|
scene | mk_scene_t | Value for scene. |
parent | mk_scene_node_t | Value for parent. |
Returns The resulting handle or value.
mk_scene_node_destroyfunctionmk_result mk_scene_node_destroy(mk_scene_t scene, mk_scene_node_t node)Destroy the scene node.
| Parameter | Type | Description |
|---|---|---|
scene | mk_scene_t | Value for scene. |
node | mk_scene_node_t | Value for node. |
Returns MK_SUCCESS or an error result.
mk_scene_node_equalfunctionbool mk_scene_node_equal(mk_scene_node_t a, mk_scene_node_t b)Perform the scene node equal operation.
| Parameter | Type | Description |
|---|---|---|
a | mk_scene_node_t | Value for a. |
b | mk_scene_node_t | Value for b. |
Returns True when the operation succeeds.
mk_scene_node_is_validfunctionbool mk_scene_node_is_valid(mk_scene_node_t node)Test whether the scene node is valid.
| Parameter | Type | Description |
|---|---|---|
node | mk_scene_node_t | Value for node. |
Returns True when the condition holds.
mk_scene_node_layersfunctionuint64_t mk_scene_node_layers(mk_scene_t scene, mk_scene_node_t node)Perform the scene node layers operation.
| Parameter | Type | Description |
|---|---|---|
scene | mk_scene_t | Value for scene. |
node | mk_scene_node_t | Value for node. |
Returns The resulting value.
mk_scene_node_local_matrixfunctionmk_result mk_scene_node_local_matrix(mk_scene_t scene, mk_scene_node_t node, mk_mat4 *out_matrix)Perform the scene node local matrix operation.
| Parameter | Type | Description |
|---|---|---|
scene | mk_scene_t | Value for scene. |
node | mk_scene_node_t | Value for node. |
out_matrix | mk_mat4 * | Receives the matrix. |
Returns MK_SUCCESS or an error result.
mk_scene_node_parentfunctionmk_scene_node_t mk_scene_node_parent(mk_scene_t scene, mk_scene_node_t node)Perform the scene node parent operation.
| Parameter | Type | Description |
|---|---|---|
scene | mk_scene_t | Value for scene. |
node | mk_scene_node_t | Value for node. |
Returns The resulting handle or value.
mk_scene_node_set_camerafunctionmk_result mk_scene_node_set_camera(mk_scene_t scene, mk_scene_node_t node, const mk_scene_camera_desc *camera)Set camera on the scene node.
| Parameter | Type | Description |
|---|---|---|
scene | mk_scene_t | Value for scene. |
node | mk_scene_node_t | Value for node. |
camera | const mk_scene_camera_desc * | Value for camera. |
Returns MK_SUCCESS or an error result.
mk_scene_node_set_enabledfunctionmk_result mk_scene_node_set_enabled(mk_scene_t scene, mk_scene_node_t node, bool enabled)Set enabled on the scene node.
| Parameter | Type | Description |
|---|---|---|
scene | mk_scene_t | Value for scene. |
node | mk_scene_node_t | Value for node. |
enabled | bool | Whether the feature is enabled. |
Returns MK_SUCCESS or an error result.
mk_scene_node_set_layersfunctionmk_result mk_scene_node_set_layers(mk_scene_t scene, mk_scene_node_t node, uint64_t layers)Set layers on the scene node.
| Parameter | Type | Description |
|---|---|---|
scene | mk_scene_t | Value for scene. |
node | mk_scene_node_t | Value for node. |
layers | uint64_t | Value for layers. |
Returns MK_SUCCESS or an error result.
mk_scene_node_set_lightfunctionmk_result mk_scene_node_set_light(mk_scene_t scene, mk_scene_node_t node, const mk_light_desc *light)Set light on the scene node.
| Parameter | Type | Description |
|---|---|---|
scene | mk_scene_t | Value for scene. |
node | mk_scene_node_t | Value for node. |
light | const mk_light_desc * | Value for light. |
Returns MK_SUCCESS or an error result.
mk_scene_node_set_local_matrixfunctionmk_result mk_scene_node_set_local_matrix(mk_scene_t scene, mk_scene_node_t node, const mk_mat4 *matrix)Set local matrix on the scene node.
| Parameter | Type | Description |
|---|---|---|
scene | mk_scene_t | Value for scene. |
node | mk_scene_node_t | Value for node. |
matrix | const mk_mat4 * | Value for matrix. |
Returns MK_SUCCESS or an error result.
mk_scene_node_set_local_trsfunctionmk_result mk_scene_node_set_local_trs(mk_scene_t scene, mk_scene_node_t node, const mk_transform *transform)Set local trs on the scene node.
| Parameter | Type | Description |
|---|---|---|
scene | mk_scene_t | Value for scene. |
node | mk_scene_node_t | Value for node. |
transform | const mk_transform * | Value for transform. |
Returns MK_SUCCESS or an error result.
mk_scene_node_set_meshfunctionmk_result mk_scene_node_set_mesh(mk_scene_t scene, mk_scene_node_t node, const mk_scene_mesh_desc *mesh)Set mesh on the scene node.
| Parameter | Type | Description |
|---|---|---|
scene | mk_scene_t | Value for scene. |
node | mk_scene_node_t | Value for node. |
mesh | const mk_scene_mesh_desc * | Value for mesh. |
Returns MK_SUCCESS or an error result.
mk_scene_node_set_modelfunctionmk_result mk_scene_node_set_model(mk_scene_t scene, mk_scene_node_t node, const mk_scene_model_desc *model)Set model on the scene node.
| Parameter | Type | Description |
|---|---|---|
scene | mk_scene_t | Value for scene. |
node | mk_scene_node_t | Value for node. |
model | const mk_scene_model_desc * | Value for model. |
Returns MK_SUCCESS or an error result.
mk_scene_node_set_model_instancefunctionmk_result mk_scene_node_set_model_instance(mk_scene_t scene, mk_scene_node_t node, const mk_scene_model_instance_desc *instance)Set model instance on the scene node.
| Parameter | Type | Description |
|---|---|---|
scene | mk_scene_t | Value for scene. |
node | mk_scene_node_t | Value for node. |
instance | const mk_scene_model_instance_desc * | Value for instance. |
Returns MK_SUCCESS or an error result.
mk_scene_node_set_parentfunctionmk_result mk_scene_node_set_parent(mk_scene_t scene, mk_scene_node_t node, mk_scene_node_t parent)Set parent on the scene node.
| Parameter | Type | Description |
|---|---|---|
scene | mk_scene_t | Value for scene. |
node | mk_scene_node_t | Value for node. |
parent | mk_scene_node_t | Value for parent. |
Returns MK_SUCCESS or an error result.
mk_scene_node_world_enabledfunctionbool mk_scene_node_world_enabled(mk_scene_t scene, mk_scene_node_t node)Effective enabled state after evaluating the node's parent hierarchy.
| Parameter | Type | Description |
|---|---|---|
scene | mk_scene_t | Value for scene. |
node | mk_scene_node_t | Value for node. |
Returns True when the operation succeeds.
mk_scene_node_world_matrixfunctionmk_result mk_scene_node_world_matrix(mk_scene_t scene, mk_scene_node_t node, mk_mat4 *out_matrix)Perform the scene node world matrix operation.
| Parameter | Type | Description |
|---|---|---|
scene | mk_scene_t | Value for scene. |
node | mk_scene_node_t | Value for node. |
out_matrix | mk_mat4 * | Receives the matrix. |
Returns MK_SUCCESS or an error result.
mk_scene_renderer_createfunctionmk_scene_renderer_t mk_scene_renderer_create(void)Create scene renderer.
Returns The resulting handle or value.
mk_scene_renderer_destroyfunctionvoid mk_scene_renderer_destroy(mk_scene_renderer_t renderer)Destroy the scene renderer.
| Parameter | Type | Description |
|---|---|---|
renderer | mk_scene_renderer_t | Value for renderer. |
mk_scene_renderer_renderfunctionmk_result mk_scene_renderer_render(mk_scene_renderer_t renderer, mk_scene_t scene, const mk_scene_render_desc *desc, mk_scene_render_report *out_report)Perform the scene renderer render operation.
| Parameter | Type | Description |
|---|---|---|
renderer | mk_scene_renderer_t | Value for renderer. |
scene | mk_scene_t | Value for scene. |
desc | const mk_scene_render_desc * | Configuration descriptor. |
out_report | mk_scene_render_report * | Receives the report. |
Returns MK_SUCCESS or an error result.
mk_scene_set_ambientfunctionmk_result mk_scene_set_ambient(mk_scene_t scene, uint32_t ambient_rgba)Set ambient on the scene.
| Parameter | Type | Description |
|---|---|---|
scene | mk_scene_t | Value for scene. |
ambient_rgba | uint32_t | Value for ambient RGBA. |
Returns MK_SUCCESS or an error result.
mk_scene_set_environmentfunctionmk_result mk_scene_set_environment(mk_scene_t scene, const mk_scene_environment_desc *environment)Set environment on the scene.
| Parameter | Type | Description |
|---|---|---|
scene | mk_scene_t | Value for scene. |
environment | const mk_scene_environment_desc * | Value for environment. |
Returns MK_SUCCESS or an error result.
mk_scene_world_generationfunctionuint64_t mk_scene_world_generation(mk_scene_t scene)Perform the scene world generation operation.
| Parameter | Type | Description |
|---|---|---|
scene | mk_scene_t | Value for scene. |
Returns The resulting value.
mk_scene_camera_descstructData for scene camera desc.
| Field | Type | Description |
|---|---|---|
camera | mk_camera | The camera. |
layer_mask | uint64_t | The layer mask. |
mk_scene_collect_descstructData for scene collect desc.
| Field | Type | Description |
|---|---|---|
camera | mk_scene_node_t | The camera. |
shadow_camera | mk_scene_node_t | The shadow camera. |
render_layer_mask | uint64_t | The render layer mask. |
shadow_layer_mask | uint64_t | The shadow layer mask. |
mk_scene_collection_statsstructData for scene collection stats.
| Field | Type | Description |
|---|---|---|
visited | uint32_t | The visited. |
visible | uint32_t | The visible. |
culled | uint32_t | The culled. |
unknown_bounds | uint32_t | The unknown bounds. |
lod_selected | uint32_t | The lod selected. |
opaque | uint32_t | The opaque. |
transparent | uint32_t | The transparent. |
shadow_candidates | uint32_t | The shadow candidates. |
mk_scene_descstructData for scene desc.
| Field | Type | Description |
|---|---|---|
name | const char * | The name. |
initial_node_capacity | uint32_t | The initial node capacity. |
mk_scene_environment_descstructData for scene environment desc.
| Field | Type | Description |
|---|---|---|
environment | mk_ibl_t | The environment. |
rotation | float | The rotation. |
sky_blur | float | The sky blur. |
draw_sky | bool | The draw sky. |
mk_scene_lodstructData for scene lod.
| Field | Type | Description |
|---|---|---|
geometry | mk_geometry_t | The geometry. |
material | mk_material_t | The material. |
max_distance | float | The max distance. |
mk_scene_mesh_descstructData for scene mesh desc.
| Field | Type | Description |
|---|---|---|
lods | mk_scene_lod | The lods. |
lod_count | uint8_t | The lod count. |
cast_shadow | bool | The cast shadow. |
receive_shadow | bool | The receive shadow. |
mk_scene_model_descstructData for scene model desc.
| Field | Type | Description |
|---|---|---|
model | mk_model_t | The model. |
cast_shadow | bool | The cast shadow. |
receive_shadow | bool | The receive shadow. |
mk_scene_model_instance_descstructData for scene model instance desc.
| Field | Type | Description |
|---|---|---|
instance | mk_model_instance_t | The instance. |
cast_shadow | bool | The cast shadow. |
receive_shadow | bool | The receive shadow. |
mk_scene_node_tstructData for scene node.
| Field | Type | Description |
|---|---|---|
scene_id | uint64_t | The scene ID. |
slot | uint32_t | The slot. |
generation | uint32_t | The generation. |
mk_scene_packetstructData for scene packet.
| Field | Type | Description |
|---|---|---|
node | mk_scene_node_t | The node. |
geometry | mk_geometry_t | The geometry. |
material | mk_material_t | The material. |
dynamic_vertices | mk_dvbuf_t | The dynamic vertices. |
transform | mk_mat4 | The transform. |
world_bounds | mk_aabb | The world bounds. |
layer_mask | uint64_t | The layer mask. |
camera_depth | float | The camera depth. |
selected_lod | uint8_t | The selected lod. |
has_world_bounds | bool | The has world bounds. |
cast_shadow | bool | The cast shadow. |
receive_shadow | bool | The receive shadow. |
mk_scene_pbr_variant_usagestructData for scene PBR variant usage.
| Field | Type | Description |
|---|---|---|
variant_id | uint32_t | The variant ID. |
extension_mask | uint32_t | The extension mask. |
family | uint32_t | The family. |
sampler_count | uint32_t | The sampler count. |
draw_count | uint32_t | The draw count. |
mk_scene_pick_hitstructData for scene pick hit.
| Field | Type | Description |
|---|---|---|
node | mk_scene_node_t | The node. |
distance | float | The distance. |
position | mk_vec3 | The position. |
world_bounds | mk_aabb | The world bounds. |
selected_lod | uint8_t | The selected lod. |
mk_scene_post_descstructOptional scene post settings.
NULL on mk_scene_render_desc uses renderer defaults.
| Field | Type | Description |
|---|---|---|
tonemap_operator | int | The tonemap operator. |
exposure | float | The exposure. |
bloom | mk_bloom_params | The bloom. |
bloom_intensity | float | The bloom intensity. |
color_lut | mk_texture_t | The color lut. |
vignette | float | The vignette. |
mk_scene_render_descstructData for scene render desc.
| Field | Type | Description |
|---|---|---|
camera | mk_scene_node_t | The camera. |
shadow_camera | mk_scene_node_t | The shadow camera. |
target | mk_render_target_t | The target. |
viewport_x | uint16_t | The viewport x. |
viewport_y | uint16_t | The viewport y. |
viewport_width | uint16_t | The viewport width. |
viewport_height | uint16_t | The viewport height. |
clear_flags | uint16_t | The clear flags. |
clear_color | uint32_t | The clear color. |
clear_depth | float | The clear depth. |
clear_stencil | uint8_t | The clear stencil. |
render_layer_mask | uint64_t | The render layer mask. |
shadow_layer_mask | uint64_t | The shadow layer mask. |
enable_mask | uint64_t | The enable mask. |
disable_mask | uint64_t | The disable mask. |
output_color_space | mk_color_space_t | The output color space. |
post | const mk_scene_post_desc * | The post. |
opaque_hook | mk_scene_render_hook | The opaque hook. |
transparent_hook | mk_scene_render_hook | The transparent hook. |
hook_user_data | void * | The hook user data. |
mk_scene_render_reportstructData for scene render report.
| Field | Type | Description |
|---|---|---|
result | mk_result | The result. |
requested_features | uint64_t | The requested features. |
active_features | uint64_t | The active features. |
disabled_features | uint64_t | The disabled features. |
unsupported_features | uint64_t | The unsupported features. |
output_conversion | mk_scene_output_conversion_t | The output conversion. |
collection | mk_scene_collection_stats | The collection. |
submitted | uint32_t | The submitted. |
rejected | uint32_t | The rejected. |
batching | mk_batch_stats | The batching. |
lighting | mk_lighting_stats | The lighting. |
shadows | mk_shadow_stats | The shadows. |
pbr_variants | mk_scene_pbr_variant_usage | The PBR variants. |
pbr_variant_count | uint8_t | The PBR variant count. |
pbr_downgrade_mask | uint32_t | The PBR downgrade mask. |
mk_scene_output_conversion_tenumValues for scene output conversion.
| Value | Description |
|---|---|
MK_SCENE_OUTPUT_LINEAR | Selects linear. |
MK_SCENE_OUTPUT_HARDWARE_SRGB | Selects hardware srgb. |
MK_SCENE_OUTPUT_SOFTWARE_SRGB | Selects software srgb. |
mk_scene_renderer_featureenumValues for scene renderer feature.
| Value | Description |
|---|---|
MK_SCENE_FEATURE_DIRECT_LIGHTS | Selects direct lights. |
MK_SCENE_FEATURE_SHADOWS | Selects shadows. |
MK_SCENE_FEATURE_CLUSTERS | Selects clusters. |
MK_SCENE_FEATURE_IBL | Selects ibl. |
MK_SCENE_FEATURE_TRANSMISSION | Selects transmission. |
MK_SCENE_FEATURE_BLOOM | Selects bloom. |
MK_SCENE_FEATURE_TONE_MAPPING | Selects tone mapping. |
MK_SCENE_FEATURE_FXAA | Selects fxaa. |
MK_SCENE_FEATURE_SKY | Selects sky. |
MK_SCENE_FEATURE_AUTO_BATCH | Selects auto batch. |
MK_SCENE_FEATURE_COLOR_GRADING | Selects color grading. |
MK_SCENE_FEATURE_VIGNETTE | Selects vignette. |
mk_scene_camera_desctypedeftypedef struct mk_scene_camera_desc mk_scene_camera_descData for scene camera desc.
mk_scene_collect_desctypedeftypedef struct mk_scene_collect_desc mk_scene_collect_descData for scene collect desc.
mk_scene_collection_statstypedeftypedef struct mk_scene_collection_stats mk_scene_collection_statsData for scene collection stats.
mk_scene_collection_ttypedeftypedef struct mk_scene_collection mk_scene_collection_tType used for scene collection.
mk_scene_desctypedeftypedef struct mk_scene_desc mk_scene_descData for scene desc.
mk_scene_environment_desctypedeftypedef struct mk_scene_environment_desc mk_scene_environment_descData for scene environment desc.
mk_scene_lodtypedeftypedef struct mk_scene_lod mk_scene_lodData for scene lod.
mk_scene_mesh_desctypedeftypedef struct mk_scene_mesh_desc mk_scene_mesh_descData for scene mesh desc.
mk_scene_model_desctypedeftypedef struct mk_scene_model_desc mk_scene_model_descData for scene model desc.
mk_scene_model_instance_desctypedeftypedef struct mk_scene_model_instance_desc mk_scene_model_instance_descData for scene model instance desc.
mk_scene_node_ttypedeftypedef struct mk_scene_node_t mk_scene_node_tData for scene node.
mk_scene_output_conversion_ttypedeftypedef enum mk_scene_output_conversion_t mk_scene_output_conversion_tValues for scene output conversion.
mk_scene_packettypedeftypedef struct mk_scene_packet mk_scene_packetData for scene packet.
mk_scene_pbr_variant_usagetypedeftypedef struct mk_scene_pbr_variant_usage mk_scene_pbr_variant_usageData for scene PBR variant usage.
mk_scene_pick_hittypedeftypedef struct mk_scene_pick_hit mk_scene_pick_hitData for scene pick hit.
mk_scene_post_desctypedeftypedef struct mk_scene_post_desc mk_scene_post_descOptional scene post settings.
NULL on mk_scene_render_desc uses renderer defaults.
mk_scene_render_desctypedeftypedef struct mk_scene_render_desc mk_scene_render_descData for scene render desc.
mk_scene_render_hooktypedeftypedef mk_result(*) mk_scene_render_hook(const mk_scene_collection_t *collection, void *user_data)Type used for scene render hook.
mk_scene_render_reporttypedeftypedef struct mk_scene_render_report mk_scene_render_reportData for scene render report.
mk_scene_renderer_featuretypedeftypedef enum mk_scene_renderer_feature mk_scene_renderer_featureValues for scene renderer feature.
mk_scene_renderer_ttypedeftypedef struct mk_scene_renderer* mk_scene_renderer_tType used for scene renderer.
mk_scene_ttypedeftypedef struct mk_scene* mk_scene_tType used for scene.
MK_SCENE_MAX_LODSdefineMK_SCENE_MAX_LODSMaximum supported scene lods.
MK_SCENE_NODE_INVALIDdefineMK_SCENE_NODE_INVALIDInvalid sentinel for scene node.
MK_SCENE_REPORT_MAX_PBR_VARIANTSdefineMK_SCENE_REPORT_MAX_PBR_VARIANTSMaximum supported scene report PBR variants.