mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 02:30:35 +00:00
Merge pull request #6220 from aliaspider/master
(D3D11) font + slang fixes.
This commit is contained in:
commit
1d118c46a3
@ -244,7 +244,7 @@ static void d3d11_font_render_message(
|
||||
return;
|
||||
}
|
||||
|
||||
line_height = scale / font->font_driver->get_line_height(font->font_data);
|
||||
line_height = font->font_driver->get_line_height(font->font_data) * scale / video_info->height;
|
||||
|
||||
for (;;)
|
||||
{
|
||||
|
@ -420,18 +420,19 @@ bool slang_process(
|
||||
std::string& name_of_type) {
|
||||
if (var_name == "FragCoord")
|
||||
{
|
||||
for (Resource& resource : ps_resources.stage_inputs)
|
||||
{
|
||||
if (ps->get_name(resource.id) == "FragCoord")
|
||||
{
|
||||
uint32_t location = ps->get_decoration(resource.id, spv::DecorationLocation);
|
||||
ps_attrib_remap.push_back({ location, "SV_Position" });
|
||||
name_of_type = "float4";
|
||||
}
|
||||
}
|
||||
name_of_type = "float4";
|
||||
}
|
||||
};
|
||||
ps->set_variable_type_remap_callback(ps_var_remap_cb);
|
||||
for (Resource& resource : ps_resources.stage_inputs)
|
||||
{
|
||||
if (ps->get_name(resource.id) == "FragCoord")
|
||||
{
|
||||
uint32_t location = ps->get_decoration(resource.id, spv::DecorationLocation);
|
||||
ps_attrib_remap.push_back({ location, "SV_Position" });
|
||||
ps->set_variable_type_remap_callback(ps_var_remap_cb);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
vs_code = vs->compile(vs_attrib_remap);
|
||||
ps_code = ps->compile(ps_attrib_remap);
|
||||
|
Loading…
Reference in New Issue
Block a user