Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Sunset-Studios/Sundown
/ functions
Functions
1,448 in github.com/Sunset-Studios/Sundown
⨍
Functions
1,448
◇
Types & classes
332
↓ 6 callers
Method
draw_quad
(render_pass, instance_count = 1)
engine/src/renderer/mesh_task_queue.js:568
↓ 6 callers
Method
get_buffered_frame_number
()
engine/src/renderer/renderer.js:221
↓ 6 callers
Method
get_effective_context
* Gets the effective training context for a layer * * @param {number} layer_id - The ID of the layer * @returns {TrainingContext} The effecti
engine/src/ml/layer.js:125
↓ 6 callers
Method
get_physical_buffer
* Retrieves a physical buffer from the resource cache using its handle. * * @param {number} handle - The handle of the buffer to retrieve. *
engine/src/renderer/render_graph.js:803
↓ 6 callers
Method
init
(parent_context)
example/app.js:216
↓ 6 callers
Method
new_task
(mesh_id, entity, material_id = null, resort = true)
engine/src/renderer/mesh_task_queue.js:247
↓ 6 callers
Method
set_entity_instance_count
* Sets the instance count for an entity. * @param {number} entity - The entity to set the instance count for. * @param {number} instance_count -
engine/src/core/ecs/entity.js:251
↓ 6 callers
Method
update
(delta_time)
example/app.js:289
↓ 5 callers
Method
_get_gpu_type_layout
(item)
engine/src/core/shared_data.js:405
↓ 5 callers
Method
_update_state_hash
()
engine/src/renderer/material.js:298
↓ 5 callers
Method
allocate
* Allocates space for a new data item and stores the data. * @param {number} entity - The entity ID. * @param {ArrayBufferView} data - A TypedAr
engine/src/core/ecs/solar/memory.js:1024
↓ 5 callers
Method
clear
* Clear all lines
engine/src/renderer/line_renderer.js:539
↓ 5 callers
Method
disconnect
* Disconnects two layers * * @param {number} source_id - The ID of the source layer * @param {number} target_id - The ID of the target layer
engine/src/ml/layer.js:277
↓ 5 callers
Method
get_config
* Gets the config for the specified file. * * @param {string} file_name - The name of the config file * @returns {Promise<any>} The co
engine/src/core/config_db.js:84
↓ 5 callers
Method
get_entity_children
* Get an entity's children array.
engine/src/core/ecs/entity.js:431
↓ 5 callers
Method
get_entity_instance_count
* Retrieves the total instance count for an entity. * @param {number} entity - The entity handle to get the instance count for. * @returns {numb
engine/src/core/ecs/entity.js:241
↓ 5 callers
Function
get_graph_resource_type
* Retrieves the type from a graph resource handle. * @param {number} handle - The handle of the graph resource. * @returns {number} The type of the
engine/src/renderer/render_graph.js:120
↓ 5 callers
Method
get_id
* Get the ID of an archetype by its fragments. * @param {Fragment[]} fragments - The fragments to include in the archetype. * @returns {string}
engine/src/core/ecs/solar/archetype.js:167
↓ 5 callers
Method
get_layer
(prototype)
engine/src/core/simulation_layer.js:53
↓ 5 callers
Method
get_range
(name)
engine/src/input/input_provider.js:113
↓ 5 callers
Method
hide
()
engine/src/tools/dev_console.js:339
↓ 5 callers
Method
refresh_global_shader_bindings
()
engine/src/renderer/renderer.js:158
↓ 5 callers
Method
register_command
* Register a new command handler. * @param {string} command - The command name. * @param {Function} command_handler - The command handler.
engine/src/tools/dev_console.js:304
↓ 5 callers
Method
reset
()
engine/src/renderer/mesh_task_queue.js:231
↓ 5 callers
Method
reset
* Resets the render graph, clearing all resources and render passes. * This method should be called at the end of each frame to prepare for the nex
engine/src/renderer/render_graph.js:1208
↓ 5 callers
Method
write_raw
(data, offset = 0, size = null, data_offset = 0)
engine/src/renderer/buffer.js:66
↓ 4 callers
Function
_getAccessorData
(accessor)
engine/src/utility/gltf_loader.js:1250
↓ 4 callers
Method
_get_dense_chunk_base
(chunk)
engine/src/core/ecs/solar/memory.js:950
↓ 4 callers
Method
_index
* Internal helper method to compute the correct index in the linear array.
engine/src/memory/container.js:1676
↓ 4 callers
Method
_initialize_buffer
* Initializes buffer elements in the specified range * @param {number} start - Start index (inclusive) * @param {number} end - End index (ex
engine/src/memory/allocator.js:436
↓ 4 callers
Method
_recreate_index_buffer
()
engine/src/renderer/mesh.js:25
↓ 4 callers
Method
_refit_ancestors
(node_index, rebalance = true)
engine/src/acceleration/aabb_tree_processor.js:511
↓ 4 callers
Method
_setup_views
(view_config = {})
engine/src/renderer/texture.js:390
↓ 4 callers
Method
_update_node_heights
(node_index)
engine/src/acceleration/aabb_tree_processor.js:974
↓ 4 callers
Method
add
* Add a child node to a parent node. * @param {*} parent_data - The data of the parent node to add to. If null, creates root. * @param {*} child
engine/src/memory/container.js:251
↓ 4 callers
Method
add_vertex_data
(data)
engine/src/core/shared_data.js:16
↓ 4 callers
Method
build
()
engine/src/core/shared_data.js:387
↓ 4 callers
Function
child_container_layout_update
(container, x, y, width, height)
engine/src/ui/2d/immediate.js:453
↓ 4 callers
Method
copy
(a, b, offset = 0, size = null)
engine/src/ml/ops/ops.js:95
↓ 4 callers
Method
create
(canvas, canvas_ui, render_strategy, options = {})
engine/src/renderer/renderer.js:280
↓ 4 callers
Method
create
* Creates a new entity ID and maps it to the target chunk. * @param {Chunk} target_chunk - The chunk to allocate the entity in. * @param {number
engine/src/core/ecs/solar/memory.js:27
↓ 4 callers
Function
create_graph_resource_handle
* Creates a unique handle for a graph resource. * @param {number} index - The index of the resource. * @param {number} type - The type of the resour
engine/src/renderer/render_graph.js:102
↓ 4 callers
Method
create_query
* Creates a query for entities matching the given fragment requirements. * @param {Object} fragment_requirements - The fragment requirements for th
engine/src/core/ecs/entity.js:357
↓ 4 callers
Method
destroy
()
engine/src/core/ecs/solar/chunk.js:77
↓ 4 callers
Method
dispatch
(event_name, ...data)
engine/src/core/dispatcher.js:31
↓ 4 callers
Function
element_handle_input
(x, y, width, height, config, container)
engine/src/ui/2d/immediate.js:511
↓ 4 callers
Method
free_node
* Free a node * @param {number} node_index - The index of the node to free
engine/src/acceleration/aabb.js:392
↓ 4 callers
Method
from_gltf
(gltf)
engine/src/renderer/mesh.js:500
↓ 4 callers
Method
get_default_pass_order
* Returns the default pass order for the render graph. * * @param {string|number} scene_id - The ID of the scene to get the default pass order f
engine/src/renderer/render_graph.js:1289
↓ 4 callers
Method
get_entity_for
* Retrieves the entity ID for a given chunk and slot. * * @param {Chunk} chunk - The chunk containing the entity * @param {number} slot - The
engine/src/core/ecs/solar/sector.js:250
↓ 4 callers
Method
get_subnet_layers
(root_id)
engine/src/ml/layer.js:491
↓ 4 callers
Method
has_binding_slot
(slot)
engine/src/renderer/bind_group.js:19
↓ 4 callers
Function
hash_data
(data_map, initial_hash)
engine/src/utility/hashing.js:1
↓ 4 callers
Method
initialize
()
engine/src/ml/layer.js:67
↓ 4 callers
Function
npot
(value)
engine/src/utility/math.js:153
↓ 4 callers
Function
read_file
(file_path)
engine/src/utility/file_system.js:8
↓ 4 callers
Method
register_image
* Registers an existing image resource in the render graph. * This method creates a new resource handle for an existing image and sets up its metad
engine/src/renderer/render_graph.js:574
↓ 4 callers
Method
remove
(type, key)
engine/src/renderer/resource_cache.js:38
↓ 4 callers
Method
set_ao
(ao, texture = null)
engine/src/renderer/material.js:700
↓ 4 callers
Method
set_config
* Sets the config for the specified file. * * @param {string} file_name - The name of the config file * @param {any} config - The conf
engine/src/core/config_db.js:64
↓ 4 callers
Method
set_config_property
* Sets a config property in the specified file. * * @param {string} file_name - The name of the config file * @param {string} property
engine/src/core/config_db.js:106
↓ 4 callers
Method
set_metallic
(metallic, texture = null)
engine/src/renderer/material.js:684
↓ 4 callers
Method
set_normal
(normal, texture = null)
engine/src/renderer/material.js:649
↓ 4 callers
Method
shift
* Removes and returns the oldest training batch. * * @returns {Object|null} The batch object or null if empty.
engine/src/ml/layers/input.js:51
↓ 4 callers
Method
stack
* Utility to stack tensors. * This function takes an array of tensors and combines them into a single tensor * by stacking them along a new firs
engine/src/ml/math/tensor.js:488
↓ 4 callers
Method
trigger
(entity, event, ...args)
engine/src/ui/3d/element.js:184
↓ 4 callers
Method
unpack
* Break an ID into its components.
engine/src/core/ecs/solar/types.js:63
↓ 4 callers
Method
update
(delta_time)
engine/src/core/scene.js:51
↓ 3 callers
Method
#free_node
* Returns a node to the pool * @param {number} node_idx Index of node to free
engine/src/memory/container.js:240
↓ 3 callers
Method
_get_node_height
* Get the cached height of a node or calculate it if not available * @param {number} node_index - The index of the node * @returns {number} - Th
engine/src/acceleration/aabb_tree_processor.js:684
↓ 3 callers
Method
_resize
* Resizes the buffer to accommodate more elements * @param {number} new_capacity - The new capacity * @private
engine/src/memory/allocator.js:700
↓ 3 callers
Method
add_arrow
* Add an arrow * @param {Array} start - Start position [x, y, z] * @param {Array} end - End position [x, y, z] * @param {number} head_size -
engine/src/renderer/line_renderer.js:423
↓ 3 callers
Function
begin_container
(config = {})
engine/src/ui/2d/immediate.js:657
↓ 3 callers
Method
build
()
engine/src/core/shared_data.js:256
↓ 3 callers
Method
claim_segments
* Claim segments of the archetype. * @param {number} [instance_count=1] - Number of instances to allocate * @returns {Object[]} - Array of objec
engine/src/core/ecs/solar/archetype.js:68
↓ 3 callers
Method
clear
* Reset the stack to empty.
engine/src/memory/container.js:983
↓ 3 callers
Method
connect
* Connects two layers * * @param {number} source_id - The ID of the source layer * @param {number} target_id - The ID of the target layer
engine/src/ml/layer.js:248
↓ 3 callers
Method
copy_buffer
(encoder, offset, buffer, buffer_offset = 0, size = null)
engine/src/renderer/buffer.js:110
↓ 3 callers
Method
create
(config)
engine/src/renderer/texture.js:428
↓ 3 callers
Method
create_view
(view_config = {})
engine/src/renderer/texture.js:273
↓ 3 callers
Method
destroy
()
engine/src/renderer/texture.js:136
↓ 3 callers
Method
dispose
* Dispose the tensor so that it becomes reusable. * This method should release resources (e.g. GPU buffers, if applicable) and * adds the tensor
engine/src/ml/math/tensor.js:318
↓ 3 callers
Method
dot
(a, b)
engine/src/ml/ops/ops.js:119
↓ 3 callers
Method
draw
(render_graph)
engine/src/renderer/strategies/deferred_shading.js:372
↓ 3 callers
Function
end_container
()
engine/src/ui/2d/immediate.js:812
↓ 3 callers
Method
enqueue_post_commands
(name, commands_callback)
engine/src/renderer/renderer.js:138
↓ 3 callers
Method
forward
* Forward pass through the network starting from a root * * @param {number} root_id - The ID of the root layer * @param {Object} input - The
engine/src/ml/layer.js:672
↓ 3 callers
Method
free_segment
* Frees a segment of rows in a chunk. * * @param {Chunk} chunk - The chunk containing the entity * @param {number} slot - The slot index in t
engine/src/core/ecs/solar/memory.js:176
↓ 3 callers
Method
get_buffer_name
* Retrieves the buffer name for a given fragment class and field name. * @param {typeof import('../fragment.js').Fragment} FragmentClass - The frag
engine/src/core/ecs/solar/memory.js:808
↓ 3 callers
Method
get_canvas_resolution
()
engine/src/renderer/renderer.js:225
↓ 3 callers
Function
get_graph_resource_index
* Retrieves the index from a graph resource handle. * @param {number} handle - The handle of the graph resource. * @returns {number} The index of th
engine/src/renderer/render_graph.js:111
↓ 3 callers
Method
get_max_rows
* Retrieves the maximum number of rows allocated for the entity manager. * @returns {number} The maximum number of rows.
engine/src/core/ecs/solar/sector.js:280
↓ 3 callers
Method
get_parent
(entity)
engine/src/core/scene_graph.js:20
↓ 3 callers
Method
get_scene_pass_order
* Returns the pass order for a specific scene. * * @param {string|number} scene_id - The ID of the scene to get the pass order for * @returns
engine/src/renderer/render_graph.js:1315
↓ 3 callers
Method
get_template
(name)
engine/src/renderer/material.js:259
↓ 3 callers
Method
get_view
(index)
engine/src/renderer/texture.js:296
↓ 3 callers
Function
hash_value
(value)
engine/src/utility/hashing.js:11
↓ 3 callers
Method
init
* Initializes the config database. * @param {boolean} delete_db - Whether to delete the database if it already exists * @returns {Promise<vo
engine/src/core/config_db.js:14
↓ 3 callers
Function
is_trace_activated
()
engine/src/utility/performance.js:16
↓ 3 callers
Method
is_valid
()
engine/src/core/ecs/fragments/text_fragment.js:225
← previous
next →
101–200 of 1,448, ranked by callers