Improve texture binding handling
This commit is contained in:
@@ -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; }
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user