mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-11 14:41:50 +00:00
debug: Add TINT_UNIMPLEMENTED()
Use this when we have code TODOs, so we can easily find them. Change-Id: I7720d4cc3a52d51f3c240e86611b4a8eea566a6a Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/44863 Auto-Submit: Ben Clayton <bclayton@google.com> Commit-Queue: James Price <jrprice@google.com> Reviewed-by: James Price <jrprice@google.com>
This commit is contained in:
committed by
Commit Bot service account
parent
15dcd8fb15
commit
50f169dcc8
@@ -106,7 +106,7 @@ void Spirv::HandleEntryPointIOTypes(CloneContext& ctx) const {
|
||||
// TODO(jrprice): Handle structures by moving the declaration and
|
||||
// construction to the function body.
|
||||
if (param->type()->Is<type::Struct>()) {
|
||||
TINT_ICE(ctx.dst->Diagnostics())
|
||||
TINT_UNIMPLEMENTED(ctx.dst->Diagnostics())
|
||||
<< "structures as entry point parameters are not yet supported";
|
||||
continue;
|
||||
}
|
||||
@@ -128,7 +128,7 @@ void Spirv::HandleEntryPointIOTypes(CloneContext& ctx) const {
|
||||
// TODO(jrprice): Hoist the return type out to a global variable, and
|
||||
// replace return statements with variable assignments.
|
||||
if (!func->return_type()->Is<type::Void>()) {
|
||||
TINT_ICE(ctx.dst->Diagnostics())
|
||||
TINT_UNIMPLEMENTED(ctx.dst->Diagnostics())
|
||||
<< "entry point return values are not yet supported";
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user