Validation fixes
This commit is contained in:
parent
48e7952fbf
commit
424de5fab3
1 changed files with 10 additions and 2 deletions
|
|
@ -165,6 +165,14 @@ public:
|
||||||
vkDestroySampler(device, textures.particles.sampler, nullptr);
|
vkDestroySampler(device, textures.particles.sampler, nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual void getEnabledFeatures()
|
||||||
|
{
|
||||||
|
// Enable anisotropic filtering if supported
|
||||||
|
if (deviceFeatures.samplerAnisotropy) {
|
||||||
|
enabledFeatures.samplerAnisotropy = VK_TRUE;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
void buildCommandBuffers()
|
void buildCommandBuffers()
|
||||||
{
|
{
|
||||||
VkCommandBufferBeginInfo cmdBufInfo = vks::initializers::commandBufferBeginInfo();
|
VkCommandBufferBeginInfo cmdBufInfo = vks::initializers::commandBufferBeginInfo();
|
||||||
|
|
@ -461,12 +469,12 @@ public:
|
||||||
vks::initializers::descriptorImageInfo(
|
vks::initializers::descriptorImageInfo(
|
||||||
textures.particles.sampler,
|
textures.particles.sampler,
|
||||||
textures.particles.smoke.view,
|
textures.particles.smoke.view,
|
||||||
VK_IMAGE_LAYOUT_GENERAL);
|
VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL);
|
||||||
VkDescriptorImageInfo texDescriptorFire =
|
VkDescriptorImageInfo texDescriptorFire =
|
||||||
vks::initializers::descriptorImageInfo(
|
vks::initializers::descriptorImageInfo(
|
||||||
textures.particles.sampler,
|
textures.particles.sampler,
|
||||||
textures.particles.fire.view,
|
textures.particles.fire.view,
|
||||||
VK_IMAGE_LAYOUT_GENERAL);
|
VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL);
|
||||||
|
|
||||||
writeDescriptorSets = {
|
writeDescriptorSets = {
|
||||||
// Binding 0: Vertex shader uniform buffer
|
// Binding 0: Vertex shader uniform buffer
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue