remove all my stupid debug messages

This commit is contained in:
Gregory Wells
2025-06-24 16:04:02 -04:00
parent 17a9495a0a
commit cc31fd7d5c
5 changed files with 7 additions and 212 deletions

View File

@@ -2,7 +2,6 @@
#include "vulkan_texture.h"
#include "output_device/vulkan_output_devices.h"
#include "output_device/vulkan_physical_device.h"
#include "debugger/gryphn_debugger.h"
VkImageType vkGryphnTextureType(gnTextureType type) {
switch(type) {
@@ -245,12 +244,6 @@ void textureData(gnTextureHandle texture, void* pixelData) {
memcpy(data, pixelData, texture->texture->size);
vkUnmapMemory(texture->device->outputDevice->device, texture->texture->buffer.memory);
if (texture->texture->beenWrittenToo) {
gnDebuggerSetErrorMessage(texture->device->instance->debugger, (gnMessageData){
.message = gnCreateString("this texture has alreay been written too with gnTextureData (vulkan) i need to implement the functionality to write to it multible times")
});
}
//gnDevice device, VkImage image, VkFormat format, VkImageLayout oldLayout, VkImageLayout newLayout
VkTransitionImageLayout(texture->device, texture->texture->image.image, texture->info.format, VK_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL);
VkCopyBufferToImage(texture->texture->buffer, texture->texture->image, texture->texture->width, texture->texture->height, texture->device);