Further shader compilation development.
This commit is contained in:
@@ -8,8 +8,8 @@ void point_cloud_lookup::add(
|
||||
) {
|
||||
m_program_lookup.add(
|
||||
shader_program_handle,
|
||||
shader_program::attributes::point_cloud::all,
|
||||
shader_program::uniforms::point_cloud::all
|
||||
shading::attributes::point_cloud::all,
|
||||
shading::uniforms::point_cloud::all
|
||||
);
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ void point_cloud_lookup::add(
|
||||
std::optional<zgl::shader_program_handle> point_cloud_lookup::find(
|
||||
requirements::point_cloud::flags requirements
|
||||
) const {
|
||||
auto capability = shader_program::features::point_cloud::type{};
|
||||
auto capability = shading::features::point_cloud::type{};
|
||||
|
||||
auto index = std::size_t{};
|
||||
|
||||
@@ -28,7 +28,7 @@ std::optional<zgl::shader_program_handle> point_cloud_lookup::find(
|
||||
if (requirement_flags & 1)
|
||||
{
|
||||
const auto shader_requirements_index = requirements::point_cloud::all[index].shader_program_requirement_index;
|
||||
const auto& [ attributes, uniforms ] = shader_program::features::point_cloud::all[shader_requirements_index];
|
||||
const auto& [ attributes, uniforms ] = shading::features::point_cloud::all[shader_requirements_index];
|
||||
capability.attributes |= attributes;
|
||||
capability.uniforms |= uniforms;
|
||||
}
|
||||
@@ -40,7 +40,7 @@ std::optional<zgl::shader_program_handle> point_cloud_lookup::find(
|
||||
return m_program_lookup.find(
|
||||
static_cast<ztu::u32>(capability.attributes),
|
||||
static_cast<ztu::u32>(capability.uniforms),
|
||||
shader_program::attributes::point_cloud::all
|
||||
shading::attributes::point_cloud::all
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user