mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-10 21:58:45 +00:00
shader_recompiler: Support PointSize and ViewportIndex attributes. (#3541)
This commit is contained in:
@@ -555,9 +555,17 @@ void EmitContext::DefineVertexBlock() {
|
||||
cull_distances = DefineVariable(type, spv::BuiltIn::CullDistance, spv::StorageClass::Output,
|
||||
initializer);
|
||||
}
|
||||
if (info.stores.GetAny(IR::Attribute::RenderTargetId)) {
|
||||
if (info.stores.GetAny(IR::Attribute::PointSize)) {
|
||||
output_point_size =
|
||||
DefineVariable(F32[1], spv::BuiltIn::PointSize, spv::StorageClass::Output);
|
||||
}
|
||||
if (info.stores.GetAny(IR::Attribute::RenderTargetIndex)) {
|
||||
output_layer = DefineVariable(S32[1], spv::BuiltIn::Layer, spv::StorageClass::Output);
|
||||
}
|
||||
if (info.stores.GetAny(IR::Attribute::ViewportIndex)) {
|
||||
output_viewport_index =
|
||||
DefineVariable(S32[1], spv::BuiltIn::ViewportIndex, spv::StorageClass::Output);
|
||||
}
|
||||
}
|
||||
|
||||
void EmitContext::DefineOutputs() {
|
||||
|
||||
Reference in New Issue
Block a user