Make metal work
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
|
||||
#[set(everything)]
|
||||
const my_texture: tex2d;
|
||||
|
||||
#[set(everything)]
|
||||
const sampler_linear: sampler;
|
||||
|
||||
#[set(everything)]
|
||||
const constants: {
|
||||
WVP: float4x4;
|
||||
};
|
||||
|
||||
#[set(everything)]
|
||||
const sampler_linear: sampler;
|
||||
|
||||
#[set(everything)]
|
||||
const my_texture: tex2d;
|
||||
|
||||
struct vert_in {
|
||||
pos: float4;
|
||||
nor: float2;
|
||||
@@ -22,7 +22,6 @@ struct vert_out {
|
||||
tex: float2;
|
||||
}
|
||||
|
||||
|
||||
fun mesh_vert(input: vert_in): vert_out {
|
||||
var output: vert_out;
|
||||
output.nor = float3(input.nor.xy, input.pos.w);
|
||||
|
||||
@@ -23,8 +23,7 @@ function main() {
|
||||
}
|
||||
|
||||
function render_commands() {
|
||||
render_path_set_target("");
|
||||
render_path_clear_target(0xff6495ed, 1.0, clear_flag_t.COLOR | clear_flag_t.DEPTH);
|
||||
render_path_set_target("", null, clear_flag_t.COLOR | clear_flag_t.DEPTH, 0xff6495ed, 1.0);
|
||||
render_path_draw_meshes("mesh");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user