Don't use extension for stream scale/bias
This commit is contained in:
@@ -43,6 +43,8 @@ struct vert_pc
|
||||
{
|
||||
glm::ivec4 rgb_rect;
|
||||
glm::ivec4 a_rect;
|
||||
std::array<float, 4> scale;
|
||||
std::array<float, 4> bias;
|
||||
};
|
||||
|
||||
void stream_defoveator::ensure_vertices(size_t num_vertices)
|
||||
@@ -304,6 +306,8 @@ static size_t required_vertices(const wivrn::to_headset::foveation_parameter & p
|
||||
void stream_defoveator::defoveate(vk::raii::CommandBuffer & command_buffer,
|
||||
const std::array<wivrn::to_headset::foveation_parameter, 2> & foveation,
|
||||
const std::array<input, 2> & inputs,
|
||||
std::array<float, 4> scale,
|
||||
std::array<float, 4> bias,
|
||||
int destination)
|
||||
{
|
||||
if (destination < 0 || destination >= (int)output_images.size())
|
||||
@@ -424,6 +428,8 @@ void stream_defoveator::defoveate(vk::raii::CommandBuffer & command_buffer,
|
||||
input.rect_a.offset.y,
|
||||
input.rect_a.extent.width,
|
||||
input.rect_a.extent.height),
|
||||
.scale = scale,
|
||||
.bias = bias,
|
||||
};
|
||||
|
||||
device.updateDescriptorSets(descriptor_writes, {});
|
||||
|
||||
Reference in New Issue
Block a user