Blender Git Loki
Git Commits -> Revision 12570c7
Revision 12570c7 by Clément Foucault (master) May 2, 2018, 18:49 (GMT) |
GPUShader: Add GPU_SHADER_2D_IMAGE_MULTISAMPLE_2/4/8/16 This shader is used instead of blitting back and forth to a single sample buffer. This means it resolves the color and depth samples and outputs a fragment which can be depth tested and blended on top of an existing framebuffer. We do static shader variation with manual loop unrolling for performance reason. In my test I get 25% more perf with intel integrated gpu and 75% performance gain with dedicated nvidia card compared to a single shader with a uniform for sample count. |
Commit Details:
Full Hash: 12570c737356a06e21052cdc767b26ed7584a948
Parent Commit: 2602198
Lines Changed: +89, -0
1 Added Path:
/source/blender/gpu/shaders/gpu_shader_image_multisample_resolve_frag.glsl (+67, -0) (View)