summaryrefslogtreecommitdiffstats
path: root/gpu
diff options
context:
space:
mode:
Diffstat (limited to 'gpu')
-rw-r--r--gpu/command_buffer/common/mailbox.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gpu/command_buffer/common/mailbox.h b/gpu/command_buffer/common/mailbox.h
index d0e4c2c..938167f 100644
--- a/gpu/command_buffer/common/mailbox.h
+++ b/gpu/command_buffer/common/mailbox.h
@@ -5,6 +5,8 @@
#ifndef GPU_COMMAND_BUFFER_MAILBOX_H_
#define GPU_COMMAND_BUFFER_MAILBOX_H_
+#include <string.h>
+
#include "gpu/command_buffer/common/types.h"
#include "gpu/gpu_export.h"
@@ -16,6 +18,9 @@ struct GPU_EXPORT Mailbox {
void SetZero();
void SetName(const int8* name);
int8 name[64];
+ bool operator<(const Mailbox& other) const {
+ return memcmp(this, &other, sizeof other) < 0;
+ }
};
} // namespace gpu