summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-12 04:18:40 +0200
committerGitHub <noreply@github.com>2018-08-12 04:18:40 +0200
commitd37da52cb331b56ddab6990e379489fd517531d9 (patch)
tree2ade680ffb8fcafb64c88dfd7c1ad4158d7dfc1d /src/video_core/engines
parentImplement R8_UINT RenderTargetFormat & PixelFormat (#1014) (diff)
parentRasterizerGL: Ignore invalid/unset vertex attributes. (diff)
downloadyuzu-d37da52cb331b56ddab6990e379489fd517531d9.tar
yuzu-d37da52cb331b56ddab6990e379489fd517531d9.tar.gz
yuzu-d37da52cb331b56ddab6990e379489fd517531d9.tar.bz2
yuzu-d37da52cb331b56ddab6990e379489fd517531d9.tar.lz
yuzu-d37da52cb331b56ddab6990e379489fd517531d9.tar.xz
yuzu-d37da52cb331b56ddab6990e379489fd517531d9.tar.zst
yuzu-d37da52cb331b56ddab6990e379489fd517531d9.zip
Diffstat (limited to 'src/video_core/engines')
-rw-r--r--src/video_core/engines/maxwell_3d.h5
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:
struct VertexAttribute {
enum class Size : u32 {
+ Invalid = 0x0,
Size_32_32_32_32 = 0x01,
Size_32_32_32 = 0x02,
Size_16_16_16_16 = 0x03,
@@ -257,6 +258,10 @@ public:
bool IsNormalized() const {
return (type == Type::SignedNorm) || (type == Type::UnsignedNorm);
}
+
+ bool IsValid() const {
+ return size != Size::Invalid;
+ }
};
enum class PrimitiveTopology : u32 {