Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions impeller/renderer/backend/vulkan/debug_report_vk.cc
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,13 @@ DebugReportVK::Result DebugReportVK::OnDebugCallback(
if (data->messageIdNumber == 0x2c36905d) {
return Result::kContinue;
}
// This is a performance warning when a fragment stage does not consume all
// varyings from the vertex stage. We ignore this as we want to use a single
// vertex stage for the runtime effect shader without trying to determine if
// the fragment consumes it or not.
if (data->messageIdNumber == 0x609A13B) {
return Result::kContinue;
}

std::vector<std::pair<std::string, std::string>> items;

Expand Down
7 changes: 1 addition & 6 deletions impeller/scene/shaders/unlit.frag
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,8 @@ in vec4 v_color;

out vec4 frag_color;

float consume_unused() {
return (v_position.x + v_tangent_space[0][0]) * 0.001;
}

void main() {
vec4 vertex_color = mix(vec4(1), v_color, frag_info.vertex_color_weight);
frag_color = texture(base_color_texture, v_texture_coords) * vertex_color *
frag_info.color +
consume_unused();
frag_info.color;
}