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

@ -495,7 +495,7 @@ void EmitContext::DefineOutputs(const Info& info) {
if (info.stores_position || stage == Stage::VertexB) {
output_position = DefineOutput(*this, F32[4], spv::BuiltIn::Position);
}
if (info.stores_point_size) {
if (info.stores_point_size || profile.fixed_state_point_size) {
if (stage == Stage::Fragment) {
throw NotImplementedException("Storing PointSize in Fragment stage");
}