aboutsummaryrefslogtreecommitdiff
path: root/src/datum_type_test.cc
diff options
context:
space:
mode:
authordan sinclair <dj2@everburning.com>2019-04-10 09:43:29 -0400
committerGitHub <noreply@github.com>2019-04-10 09:43:29 -0400
commitb322b20327af1d6665c606983c0de035ddee6c26 (patch)
tree4e5649645db9e8c459dc26ca7ad597338e7a653d /src/datum_type_test.cc
parent43248b29723575d27eb96187ef9ca594739140ed (diff)
downloadamber-b322b20327af1d6665c606983c0de035ddee6c26.tar.gz
[vulkan] Allow setting vertex buffer with a data buffer (#450)
This CL updates the vulkan engine to allow using a data buffer when setting the vertex buffer. The needed format string will be auto-generated from the data type set in the data buffer.
Diffstat (limited to 'src/datum_type_test.cc')
-rw-r--r--src/datum_type_test.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/datum_type_test.cc b/src/datum_type_test.cc
index ef20bed..e5e8e03 100644
--- a/src/datum_type_test.cc
+++ b/src/datum_type_test.cc
@@ -33,8 +33,7 @@ TEST_P(DatumTypeTestFormat, ToFormat) {
dt.SetRowCount(test_data.row_count);
auto fmt = dt.AsFormat();
- ASSERT_TRUE(fmt != nullptr);
- EXPECT_EQ(test_data.format_type, fmt->GetFormatType());
+ EXPECT_EQ(test_data.format_type, fmt.GetFormatType());
}
INSTANTIATE_TEST_CASE_P(
DatumTypeTestFormat,