You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
PoolVector is gone, replaced by Vector
Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are sugar for `Vector<Type>`.
This commit is contained in:
committed by
Juan Linietsky
parent
fb8c93c10b
commit
3205a92ad8
@@ -47,8 +47,8 @@ void LightClusterBuilder::bake_cluster() {
|
||||
|
||||
float slice_depth = (z_near - z_far) / depth;
|
||||
|
||||
PoolVector<uint8_t>::Write cluster_dataw = cluster_data.write();
|
||||
Cell *cluster_data_ptr = (Cell *)cluster_dataw.ptr();
|
||||
uint8_t *cluster_dataw = cluster_data.ptrw();
|
||||
Cell *cluster_data_ptr = (Cell *)cluster_dataw;
|
||||
//clear the cluster
|
||||
zeromem(cluster_data_ptr, (width * height * depth * sizeof(Cell)));
|
||||
|
||||
@@ -160,8 +160,7 @@ void LightClusterBuilder::bake_cluster() {
|
||||
//print_line("offset: " + itos(offset));
|
||||
/* Step 3, Place item lists */
|
||||
|
||||
PoolVector<uint32_t>::Write idsw = ids.write();
|
||||
uint32_t *ids_ptr = idsw.ptr();
|
||||
uint32_t *ids_ptr = ids.ptrw();
|
||||
|
||||
for (uint32_t i = 0; i < sort_id_count; i++) {
|
||||
const SortID &id = sort_ids[i];
|
||||
@@ -173,12 +172,8 @@ void LightClusterBuilder::bake_cluster() {
|
||||
cell.item_pointers[id.item_type] = pointer | ((counter + 1) << COUNTER_SHIFT);
|
||||
}
|
||||
|
||||
cluster_dataw = PoolVector<uint8_t>::Write();
|
||||
|
||||
RD::get_singleton()->texture_update(cluster_texture, 0, cluster_data, true);
|
||||
RD::get_singleton()->buffer_update(items_buffer, 0, offset * sizeof(uint32_t), ids_ptr, true);
|
||||
|
||||
idsw = PoolVector<uint32_t>::Write();
|
||||
}
|
||||
|
||||
void LightClusterBuilder::setup(uint32_t p_width, uint32_t p_height, uint32_t p_depth) {
|
||||
|
||||
Reference in New Issue
Block a user