Skip to content

Commit

Permalink
re-enable GPU compute tessellator for PointFields
Browse files Browse the repository at this point in the history
  • Loading branch information
flar committed Nov 22, 2023
1 parent 24811cf commit 573472e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions impeller/entity/geometry/point_field_geometry.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ GeometryResult PointFieldGeometry::GetPositionBuffer(
const ContentContext& renderer,
const Entity& entity,
RenderPass& pass) {
if (renderer.GetDeviceCapabilities().SupportsCompute() && false) {
FML_LOG(ERROR) << "Using compute";
if (renderer.GetDeviceCapabilities().SupportsCompute()) {
return GetPositionBufferGPU(renderer, entity, pass);
}
auto vtx_builder = GetPositionBufferCPU(renderer, entity, pass);
Expand All @@ -46,8 +45,7 @@ GeometryResult PointFieldGeometry::GetPositionUVBuffer(
const ContentContext& renderer,
const Entity& entity,
RenderPass& pass) {
if (renderer.GetDeviceCapabilities().SupportsCompute() && false) {
FML_LOG(ERROR) << "Using compute";
if (renderer.GetDeviceCapabilities().SupportsCompute()) {
return GetPositionBufferGPU(renderer, entity, pass, texture_coverage,
effect_transform);
}
Expand Down

0 comments on commit 573472e

Please sign in to comment.