Add renderer backend feature reporting
This commit is contained in:
@@ -36,6 +36,15 @@ void detects_common_extension_capabilities(pp::tests::Harness& h)
|
||||
PP_EXPECT(h, capabilities.map_buffer_alignment);
|
||||
PP_EXPECT(h, !capabilities.float32_textures);
|
||||
PP_EXPECT(h, !capabilities.float16_textures);
|
||||
|
||||
const auto features = pp::renderer::gl::render_device_features(capabilities);
|
||||
PP_EXPECT(h, features.framebuffer_fetch);
|
||||
PP_EXPECT(h, !features.explicit_texture_transitions);
|
||||
PP_EXPECT(h, features.texture_copy);
|
||||
PP_EXPECT(h, features.render_target_blit);
|
||||
PP_EXPECT(h, features.frame_capture);
|
||||
PP_EXPECT(h, !features.float16_render_targets);
|
||||
PP_EXPECT(h, !features.float32_render_targets);
|
||||
}
|
||||
|
||||
void treats_desktop_gl_float_rendering_as_core(pp::tests::Harness& h)
|
||||
@@ -47,6 +56,10 @@ void treats_desktop_gl_float_rendering_as_core(pp::tests::Harness& h)
|
||||
PP_EXPECT(h, capabilities.float32_textures);
|
||||
PP_EXPECT(h, capabilities.float32_linear);
|
||||
PP_EXPECT(h, capabilities.float16_textures);
|
||||
|
||||
const auto features = pp::renderer::gl::render_device_features(capabilities);
|
||||
PP_EXPECT(h, features.float16_render_targets);
|
||||
PP_EXPECT(h, features.float32_render_targets);
|
||||
}
|
||||
|
||||
void detects_gles_texture_float_extensions(pp::tests::Harness& h)
|
||||
|
||||
Reference in New Issue
Block a user