This commit is contained in:
Jorijn van der Graaf 2025-05-08 01:13:59 +02:00
commit 0c6934023b
4 changed files with 59 additions and 64 deletions

View file

@ -38,7 +38,7 @@ namespace Crafter {
public:
VkSampler textureSampler;
VkDescriptorImageInfo imageInfo;
ComponentRefOwning<VulkanTexture<PixelType>> texture;
VulkanTexture<PixelType>* texture;
TextureShader(VulkanTexture<PixelType>* texture) : texture(texture) {
VkSamplerCreateInfo samplerInfo{};
samplerInfo.sType = VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO;