kong fixes
This commit is contained in:
@@ -1429,7 +1429,7 @@ static void write_functions(char *hlsl, size_t *offset, shader_stage stage, func
|
||||
o->op_call.var.index, o->op_call.parameters[0].index);
|
||||
}
|
||||
else if (o->op_call.func == add_name("ddy2")) {
|
||||
*offset += sprintf(&hlsl[*offset], "%s _%" PRIu64 " = ddx(_%" PRIu64 ");\n", type_string(o->op_call.var.type.type),
|
||||
*offset += sprintf(&hlsl[*offset], "%s _%" PRIu64 " = ddy(_%" PRIu64 ");\n", type_string(o->op_call.var.type.type),
|
||||
o->op_call.var.index, o->op_call.parameters[0].index);
|
||||
}
|
||||
else if (o->op_call.func == add_name("ddx3")) {
|
||||
@@ -1437,7 +1437,7 @@ static void write_functions(char *hlsl, size_t *offset, shader_stage stage, func
|
||||
o->op_call.var.index, o->op_call.parameters[0].index);
|
||||
}
|
||||
else if (o->op_call.func == add_name("ddy3")) {
|
||||
*offset += sprintf(&hlsl[*offset], "%s _%" PRIu64 " = ddx(_%" PRIu64 ");\n", type_string(o->op_call.var.type.type),
|
||||
*offset += sprintf(&hlsl[*offset], "%s _%" PRIu64 " = ddy(_%" PRIu64 ");\n", type_string(o->op_call.var.type.type),
|
||||
o->op_call.var.index, o->op_call.parameters[0].index);
|
||||
}
|
||||
|
||||
@@ -1987,7 +1987,7 @@ void hlsl_export(char *directory, api_kind d3d, bool debug) {
|
||||
|
||||
////
|
||||
|
||||
int compile_hlsl_to_d3d12(const char *source, uint8_t **output, size_t *outputlength, shader_stage stage, bool debug) {}
|
||||
int compile_hlsl_to_d3d12(const char *source, uint8_t **output, size_t *outputlength, shader_stage stage, bool debug) { return 0; }
|
||||
|
||||
static char *hlsl_export_vertex2(api_kind d3d, function *main, bool debug) {
|
||||
char *hlsl = (char *)calloc(1024 * 1024, 1);
|
||||
|
||||
Reference in New Issue
Block a user