spirv: Add fixed pipeline point size

This commit is contained in:
ReinUsesLisp 2021-03-30 03:58:46 -03:00 committed by ameerj
parent 9d7422d967
commit 7a1c14269e
4 changed files with 11 additions and 1 deletions

View file

@ -864,6 +864,9 @@ Shader::Profile PipelineCache::MakeProfile(const GraphicsPipelineCacheKey& key,
Shader::Profile profile{base_profile};
if (stage == Shader::Stage::VertexB) {
profile.convert_depth_mode = key.state.ndc_minus_one_to_one != 0;
if (key.state.topology == Maxwell::PrimitiveTopology::Points) {
profile.fixed_state_point_size = Common::BitCast<float>(key.state.point_size);
}
std::ranges::transform(key.state.attributes, profile.generic_input_types.begin(),
&CastAttributeType);
}