Skip to content

Comments

Default data#95

Open
anunknowperson wants to merge 2 commits intomainfrom
default-data
Open

Default data#95
anunknowperson wants to merge 2 commits intomainfrom
default-data

Conversation

@anunknowperson
Copy link
Owner

Move drawing methods to another class. Fix usage of VMA's internal methods. Replace with public interface.

@anunknowperson
Copy link
Owner Author

dependent on #94

// Add it to the deletion queue of this frame, so it gets deleted once it's been used
_engine->get_current_frame()._deletionQueue.push_function(
[=, this] { _engine->destroy_buffer(gpuSceneDataBuffer); });

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Почему легендарная строка 52 пустует?

sceneUniformData->colorFactors = glm::vec4{1.0f, 1.0f, 1.0f, 1.0f};
sceneUniformData->metal_rough_factors = glm::vec4{1.0f, 0.5f, 0.0f, 0.0f};

vmaUnmapMemory(_engine->_allocator, materialConstants.allocation);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Где эмодзи? Современный код должен быть выразительным! �💥🧹 Должно быть так:

Suggested change
vmaUnmapMemory(_engine->_allocator, materialConstants.allocation);
vmaUnmapMemory(_engine->_allocator, materialConstants.allocation); // 🔥💀🚫

@dkorbelainen dkorbelainen self-requested a review May 28, 2025 14:31
Copy link
Collaborator

@Gr-i-niy Gr-i-niy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Меня смущают ошибки в рантайме, но возможно так и надо...
А ещё фигурки в демке куда-то в другое место переместились


// prepare the submission to the queue.
// we want to wait on the _presentSemaphore, as that semaphore is signaled
// we want to wait on the _presentSemaphore, as that semaphore is signaled
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Куда поехал

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants