81 int coordinate_system,
82 bool enable_render_target_usage,
83 bool enable_shader_read_usage,
84 bool enable_shader_write_usage) {
90 if (enable_render_target_usage) {
93 if (enable_shader_read_usage) {
96 if (enable_shader_write_usage) {
99 switch (sample_count) {
112 gpu_context->
GetContext()->GetResourceAllocator()->CreateTexture(desc);
121 auto res = fml::MakeRefCounted<flutter::gpu::Texture>(std::move(
texture));
122 res->AssociateWithDartWrapper(wrapper);
static sk_sp< GrTextureProxy > wrapped(skiatest::Reporter *reporter, GrRecordingContext *rContext, GrProxyProvider *proxyProvider, SkBackingFit fit)
std::shared_ptr< impeller::Context > GetContext()
Texture(std::shared_ptr< impeller::Texture > texture)
size_t GetBytesPerTexel()
std::shared_ptr< impeller::Texture > GetTexture()
bool Overwrite(const tonic::DartByteData &source_bytes)
Dart_Handle AsImage() const
void SetCoordinateSystem(impeller::TextureCoordinateSystem coordinate_system)
uint32_t uint32_t * format
void InternalFlutterGpu_Texture_SetCoordinateSystem(flutter::gpu::Texture *wrapper, int coordinate_system)
Dart_Handle InternalFlutterGpu_Texture_AsImage(flutter::gpu::Texture *wrapper)
bool InternalFlutterGpu_Texture_Overwrite(flutter::gpu::Texture *texture, Dart_Handle source_byte_data)
int InternalFlutterGpu_Texture_BytesPerTexel(flutter::gpu::Texture *wrapper)
bool InternalFlutterGpu_Texture_Initialize(Dart_Handle wrapper, flutter::gpu::Context *gpu_context, int storage_mode, int format, int width, int height, int sample_count, int coordinate_system, bool enable_render_target_usage, bool enable_shader_read_usage, bool enable_shader_write_usage)
A lightweight object that describes the attributes of a texture that can then used an allocator to cr...