Texture implementation basics

This commit is contained in:
2024-07-04 17:00:46 +02:00
parent d79f74c21d
commit 3e73672538
9 changed files with 104 additions and 37 deletions

View File

@@ -127,7 +127,7 @@ namespace OpenVulkano::Scene
{
CheckShaderInitState();
if (setId < 0) setId = static_cast<int>(descriptorSets.size() + 2);
if (setId < 2) throw std::runtime_error("Cant bind set id 0 or 1!");
if (setId < 2) throw std::runtime_error("Cant bind set id 0 or 1! They are used for node and camera!");
setId -= 2;
while (setId >= static_cast<int>(descriptorSets.size()))
{