Move texture2d mapping to renderer gl

This commit is contained in:
2026-06-02 06:41:00 +02:00
parent 02f14f1bf5
commit 85a5d19a3e
6 changed files with 68 additions and 15 deletions

View File

@@ -84,6 +84,7 @@ void selects_texture_upload_type_from_internal_format(pp::tests::Harness& h)
PP_EXPECT(h, pp::renderer::gl::texture_upload_type_for_internal_format(gl_rgba32f) == gl_float);
PP_EXPECT(h, pp::renderer::gl::texture_upload_type_for_internal_format(gl_rgba16f) == gl_half_float);
PP_EXPECT(h, pp::renderer::gl::texture_upload_type_for_internal_format(0U) == gl_unsigned_byte);
PP_EXPECT(h, pp::renderer::gl::unsigned_byte_component_type() == gl_unsigned_byte);
PP_EXPECT(h, pp::renderer::gl::rgba_pixel_format() == 0x1908U);
}