diff options
| author | 2018-08-11 22:18:40 -0400 | |
|---|---|---|
| committer | 2018-08-11 22:18:40 -0400 | |
| commit | d37da52cb331b56ddab6990e379489fd517531d9 (patch) | |
| tree | 2ade680ffb8fcafb64c88dfd7c1ad4158d7dfc1d /src/video_core/engines | |
| parent | Implement R8_UINT RenderTargetFormat & PixelFormat (#1014) (diff) | |
| parent | RasterizerGL: Ignore invalid/unset vertex attributes. (diff) | |
| download | yuzu-d37da52cb331b56ddab6990e379489fd517531d9.tar.gz yuzu-d37da52cb331b56ddab6990e379489fd517531d9.tar.xz yuzu-d37da52cb331b56ddab6990e379489fd517531d9.zip | |
Merge pull request #1023 from Subv/invalid_attribs
RasterizerGL: Ignore invalid/unset vertex attributes.
Diffstat (limited to 'src/video_core/engines')
| -rw-r--r-- | src/video_core/engines/maxwell_3d.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h index 0506ac8fe..d795323b0 100644 --- a/src/video_core/engines/maxwell_3d.h +++ b/src/video_core/engines/maxwell_3d.h | |||
| @@ -93,6 +93,7 @@ public: | |||
| 93 | 93 | ||
| 94 | struct VertexAttribute { | 94 | struct VertexAttribute { |
| 95 | enum class Size : u32 { | 95 | enum class Size : u32 { |
| 96 | Invalid = 0x0, | ||
| 96 | Size_32_32_32_32 = 0x01, | 97 | Size_32_32_32_32 = 0x01, |
| 97 | Size_32_32_32 = 0x02, | 98 | Size_32_32_32 = 0x02, |
| 98 | Size_16_16_16_16 = 0x03, | 99 | Size_16_16_16_16 = 0x03, |
| @@ -257,6 +258,10 @@ public: | |||
| 257 | bool IsNormalized() const { | 258 | bool IsNormalized() const { |
| 258 | return (type == Type::SignedNorm) || (type == Type::UnsignedNorm); | 259 | return (type == Type::SignedNorm) || (type == Type::UnsignedNorm); |
| 259 | } | 260 | } |
| 261 | |||
| 262 | bool IsValid() const { | ||
| 263 | return size != Size::Invalid; | ||
| 264 | } | ||
| 260 | }; | 265 | }; |
| 261 | 266 | ||
| 262 | enum class PrimitiveTopology : u32 { | 267 | enum class PrimitiveTopology : u32 { |