From d7fb64a1b127e76200359bf5505df64c04cb33ca Mon Sep 17 00:00:00 2001 From: ladevieq Date: Tue, 18 Aug 2026 22:51:56 +0200 Subject: Packed scene metadata fields --- src/vk-command-buffer.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/vk-command-buffer.cpp') diff --git a/src/vk-command-buffer.cpp b/src/vk-command-buffer.cpp index 00d60a1..aa87265 100644 --- a/src/vk-command-buffer.cpp +++ b/src/vk-command-buffer.cpp @@ -124,6 +124,8 @@ void command_buffer::copy(handle buffer_handle, ::handlebind_point, pipeline->vk_pipeline); @@ -204,6 +206,8 @@ void graphics_command_buffer::begin_renderpass(const renderpass_params& params) } void graphics_command_buffer::draw(const draw_params& params, const void* data, size_t size) const { + assert(size <= descriptor_heap_props.maxPushDataSize); + const device_pipeline* pipeline = vkdevice::get().get_pipeline(params.pipeline); vkCmdBindPipeline(vk_command_buffer, pipeline->bind_point, pipeline->vk_pipeline); @@ -222,6 +226,8 @@ void graphics_command_buffer::draw(const draw_params& params, const void* data, } void graphics_command_buffer::draw_indexed(const draw_indexed_params& params, const void* data, size_t size) const { + assert(size <= descriptor_heap_props.maxPushDataSize); + const device_pipeline* pipeline = vkdevice::get().get_pipeline(params.pipeline); vkCmdBindPipeline(vk_command_buffer, pipeline->bind_point, pipeline->vk_pipeline); -- cgit v1.3