FNA-XNA / FNA3D

FNA3D - 3D Graphics Library for FNA
http://fna-xna.github.io/
Other
287 stars 48 forks source link

Vulkan: refactor texture upload #105

Closed thatcosmonaut closed 3 years ago

thatcosmonaut commented 3 years ago

This patch prevents buffer overrun on texture uploads and warns if the dataLength value passed in is too long and also refactors SetTextureData2D, 3D, and Cube to use the same internal function.