Skeleton SPIRV translator.
This commit is contained in:
@@ -140,6 +140,14 @@ void ShaderTranslator::EmitTranslationError(const char* message) {
|
||||
errors_.push_back(std::move(error));
|
||||
}
|
||||
|
||||
void ShaderTranslator::EmitUnimplementedTranslationError() {
|
||||
TranslatedShader::Error error;
|
||||
error.is_fatal = true;
|
||||
error.message = "Unimplemented translation";
|
||||
// TODO(benvanik): location information.
|
||||
errors_.push_back(std::move(error));
|
||||
}
|
||||
|
||||
void ShaderTranslator::GatherBindingInformation(
|
||||
const ControlFlowInstruction& cf) {
|
||||
switch (cf.opcode()) {
|
||||
|
||||
Reference in New Issue
Block a user