Improve texture binding handling

This commit is contained in:
2024-07-05 09:50:19 +02:00
parent eb96d7d674
commit 86e7681a8d
4 changed files with 45 additions and 9 deletions

View File

@@ -31,8 +31,16 @@ namespace OpenVulkano::Scene
UpdateFrequency updateFrequency = UpdateFrequency::Never;
void MakePlaceholder(uint32_t width = 32, uint32_t height = 32,
Math::Vector4uc color1 = {255, 135, 255, 255}, Math::Vector4uc color2 = {255, 225, 255, 255});
Math::Vector4uc color1 = {248, 123, 255, 255}, Math::Vector4uc color2 = {250, 19, 255, 255});
};
class TextureBinding
{
public:
Texture* texture;
int setId;
operator bool() const { return setId >= 0 && texture; }
};
}