windows/vram: fix fringing in NV12 colour conversion (#622)
This commit is contained in:
parent
d69d540031
commit
c0b042fa8a
1 changed files with 4 additions and 3 deletions
|
|
@ -326,6 +326,7 @@ public:
|
|||
return;
|
||||
}
|
||||
|
||||
device_ctx_p->VSSetConstantBuffers(0, 1, &info_scene);
|
||||
device_ctx_p->PSSetConstantBuffers(0, 1, &color_matrix);
|
||||
this->color_matrix = std::move(color_matrix);
|
||||
}
|
||||
|
|
@ -376,10 +377,10 @@ public:
|
|||
img.row_pitch = out_width * 4;
|
||||
img.pixel_pitch = 4;
|
||||
|
||||
float info_in[16 / sizeof(float)] { 1.0f / (float)out_width }; //aligned to 16-byte
|
||||
float info_in[16 / sizeof(float)] { 1.0f / (float)out_width_f }; //aligned to 16-byte
|
||||
info_scene = make_buffer(device_p, info_in);
|
||||
|
||||
if(!info_in) {
|
||||
if(!info_scene) {
|
||||
BOOST_LOG(error) << "Failed to create info scene buffer"sv;
|
||||
return -1;
|
||||
}
|
||||
|
|
@ -886,4 +887,4 @@ int init() {
|
|||
|
||||
return 0;
|
||||
}
|
||||
} // namespace platf::dxgi
|
||||
} // namespace platf::dxgi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue