rsx: Implement render-to-cubemap; Also simplify unnormalized samplers [WIP, DELETE SHADER CACHE, VERY SLOW]

- Enables real-time cubemap reflections
- TODO: Vulkan is broke; rsx is very slow with this feature
This commit is contained in:
kd-11 2017-11-02 21:54:19 +03:00
parent fbb7186e66
commit 1fa18757fc
10 changed files with 185 additions and 49 deletions

View file

@ -173,11 +173,6 @@ namespace
case rsx::texture_dimension_extended::texture_dimension_3d:
case rsx::texture_dimension_extended::texture_dimension_cubemap: vec_type = "vec3";
}
if (prog.unnormalized_coords & (1 << index))
OS << "\t" << vec_type << " tex" << index << "_coord_scale = texture_parameters[" << index << "].xy / textureSize(tex" << index << ", 0);\n";
else
OS << "\t" << vec_type << " tex" << index << "_coord_scale = texture_parameters[" << index << "].xy;\n";
}
std::string insert_texture_fetch(const RSXFragmentProgram& prog, int index)