Enable required features, fix shader validation message
This commit is contained in:
parent
542be437da
commit
cee95e30c5
3 changed files with 15 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
#version 450 core
|
#version 450 core
|
||||||
|
|
||||||
layout (location = 0) in vec3 inPos;
|
layout (location = 0) in vec3 inPos;
|
||||||
|
layout (location = 1) in vec3 inNormal;
|
||||||
layout (location = 2) in vec2 inUV;
|
layout (location = 2) in vec2 inUV;
|
||||||
|
|
||||||
layout (location = 0) out vec2 outUV;
|
layout (location = 0) out vec2 outUV;
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -176,6 +176,20 @@ public:
|
||||||
if (deviceFeatures.pipelineStatisticsQuery) {
|
if (deviceFeatures.pipelineStatisticsQuery) {
|
||||||
enabledFeatures.pipelineStatisticsQuery = VK_TRUE;
|
enabledFeatures.pipelineStatisticsQuery = VK_TRUE;
|
||||||
};
|
};
|
||||||
|
// Enable anisotropic filtering if supported
|
||||||
|
if (deviceFeatures.samplerAnisotropy) {
|
||||||
|
enabledFeatures.samplerAnisotropy = VK_TRUE;
|
||||||
|
}
|
||||||
|
// Enable texture compression
|
||||||
|
if (deviceFeatures.textureCompressionBC) {
|
||||||
|
enabledFeatures.textureCompressionBC = VK_TRUE;
|
||||||
|
}
|
||||||
|
else if (deviceFeatures.textureCompressionASTC_LDR) {
|
||||||
|
enabledFeatures.textureCompressionASTC_LDR = VK_TRUE;
|
||||||
|
}
|
||||||
|
else if (deviceFeatures.textureCompressionETC2) {
|
||||||
|
enabledFeatures.textureCompressionETC2 = VK_TRUE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Setup pool and buffer for storing pipeline statistics results
|
// Setup pool and buffer for storing pipeline statistics results
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue