Glavnokoman / vulkan-compute-example

Simple example of using Vulkan for GPGPU computing
MIT License
51 stars 6 forks source link

Possible bug/undefined behavior due to out-of-bounds access in the shader module creation #1

Open photon-schiesser opened 1 year ago

photon-schiesser commented 1 year ago

https://github.com/Glavnokoman/vulkan-compute-example/blob/06362b5f8efedbe67a3898a957b777bf270c4edc/src/vulkan_helpers.cpp#L42-L45

Should code.size() be code.size()*sizeof(char)/sizeof(uint32_t) ?

Glavnokoman commented 1 year ago

why do you think so?