shader/registry: Cache tessellation state

This commit is contained in:
ReinUsesLisp 2020-02-29 04:03:22 -03:00
parent 0528be5c92
commit 66a8a3e887
3 changed files with 10 additions and 3 deletions

View file

@ -27,6 +27,9 @@ GraphicsInfo MakeGraphicsInfo(ShaderType shader_stage, ConstBufferEngineInterfac
GraphicsInfo info;
info.primitive_topology = graphics.regs.draw.topology;
info.tessellation_primitive = graphics.regs.tess_mode.prim;
info.tessellation_spacing = graphics.regs.tess_mode.spacing;
info.tessellation_clockwise = graphics.regs.tess_mode.cw;
return info;
}