You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
vulkan: add .buf_elems to FFVulkanDescriptorSet
This enables users to specify a number that would be appended to the buf_content string. Saves users from needing to manually print to a string. An earlier commit tried doing this via .elems, but it was faulty, as this also incremented the total number of descriptors in the descriptor set.
This commit is contained in:
@@ -2190,9 +2190,9 @@ print:
|
||||
|
||||
if (prop->buf_content) {
|
||||
GLSLA(" {\n ");
|
||||
if (desc[i].elems) {
|
||||
if (desc[i].buf_elems) {
|
||||
GLSLA("%s", desc[i].buf_content);
|
||||
GLSLA("[%i];", desc[i].elems);
|
||||
GLSLA("[%i];", desc[i].buf_elems);
|
||||
} else {
|
||||
GLSLA("%s", desc[i].buf_content);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user