Skip to content
Snippets Groups Projects
Verified Commit 1cd1d39d authored by Tobias Frisch's avatar Tobias Frisch
Browse files

[#105] Fixed shaders by using extensions properly and enabled them on CPU

parent 8363c9c1
No related branches found
No related tags found
1 merge request!88Resolve "Indirect Draw"
Pipeline #27480 passed
......@@ -14,5 +14,5 @@ layout(set=0, binding=2) uniform texture2D baseColorTex[];
void main()
{
outColor = texture(sampler2D(baseColorTex[passDrawIndex], standardSampler), passUV).rgb;
outColor = texture(sampler2D(baseColorTex[nonuniformEXT(passDrawIndex)], standardSampler), passUV).rgb;
}
\ No newline at end of file
#version 460
#extension GL_ARB_separate_shader_objects : enable
#extension GL_ARB_shader_draw_parameters : enable
layout(location = 0) in vec3 inPosition;
layout(location = 1) in vec3 inNormal;
......
......@@ -268,6 +268,7 @@ int main(int argc, const char** argv) {
features.setMultiDrawIndirect(true);
});
features.requireExtension(VK_KHR_SHADER_DRAW_PARAMETERS_EXTENSION_NAME);
features.requireExtension(VK_EXT_DESCRIPTOR_INDEXING_EXTENSION_NAME);
features.requireExtensionFeature<vk::PhysicalDeviceDescriptorIndexingFeatures>(
VK_EXT_DESCRIPTOR_INDEXING_EXTENSION_NAME, [](vk::PhysicalDeviceDescriptorIndexingFeatures &features) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment