diff options
| author | Chia-I Wu <olv@lunarg.com> | 2015-01-16 22:31:25 +0800 |
|---|---|---|
| committer | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-02-04 17:58:09 -0700 |
| commit | 378caea6b7680ea32d1e76d536cd22314a73ea44 (patch) | |
| tree | 57b529504f907b5a5a75ea439601de0c7415cf1e | |
| parent | 54013ab86c20cf9d48e8743f11d0b8b4a2f33b9f (diff) | |
| download | usermoji-378caea6b7680ea32d1e76d536cd22314a73ea44.tar.xz | |
demos, tests: use XGL_BUFFER_VIEW_RAW for constant buffers
| -rw-r--r-- | demos/cube.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/demos/cube.c b/demos/cube.c index 155729ff..1b6a07ef 100644 --- a/demos/cube.c +++ b/demos/cube.c @@ -863,14 +863,7 @@ void demo_prepare_cube_data_buffer(struct demo *demo) memset(&view_info, 0, sizeof(view_info)); view_info.sType = XGL_STRUCTURE_TYPE_BUFFER_VIEW_CREATE_INFO; view_info.buffer = demo->uniform_data.buf; - view_info.viewType = XGL_BUFFER_VIEW_TYPED; - view_info.stride = 16; - view_info.format.channelFormat = XGL_CH_FMT_R32G32B32A32; - view_info.format.numericFormat = XGL_NUM_FMT_FLOAT; - view_info.channels.r = XGL_CHANNEL_SWIZZLE_R; - view_info.channels.g = XGL_CHANNEL_SWIZZLE_G; - view_info.channels.b = XGL_CHANNEL_SWIZZLE_B; - view_info.channels.a = XGL_CHANNEL_SWIZZLE_A; + view_info.viewType = XGL_BUFFER_VIEW_RAW; view_info.offset = 0; view_info.range = sizeof(data); |
