Made navmesh compile on Windows

Small updates to remove warnings
Testing nonuniform descriptor access in shader
This commit is contained in:
bulmanator committed 2025-10-05 01:31:39 +01:00
1 parent 175f4da59b
commit 2c67896cf2
9 files changed
+22533 -22521

No files matched your search

+1 -1
View File
@@ -161,7 +161,7 @@ void G_PipelinesLoad(G_State *game) {
bindings[1].binding = 1;
bindings[1].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER;
bindings[1].descriptorCount = 1;
bindings[1].descriptorCount = game->n_images;
bindings[1].stageFlags = VK_SHADER_STAGE_FRAGMENT_BIT;
VkDescriptorSetLayoutCreateInfo set_info = { 0 };
+2 -2
View File
@@ -42,8 +42,8 @@ void updateNPC(F32 delta, NPC *npc, World *world) {
}
void UpdateNPCs(F32 delta, World *world) {
for(int i = 0; i < world->npcCount; i++) {
for(U32 i = 0; i < world->npcCount; i++) {
updateNPC(delta, &world->npcs[i], world);
}
}
}
+1 -1
View File
@@ -4,7 +4,7 @@
#include "nav.h"
#include "../core/types.h"
#define NPC_SPEED 0.2
#define NPC_SPEED 0.2f
typedef enum NPC_ACTION NPC_ACTION;
enum NPC_ACTION {
+22500 -22500
View File
File diff suppressed because it is too large. Load diff