Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1226>
* Since: 1.18
*/
GstVulkanHandle *
* Since: 1.18
*/
GstVulkanHandle *
-gst_vulkan_create_shader (GstVulkanDevice * device, gchar * code, gsize size,
- GError ** error)
+gst_vulkan_create_shader (GstVulkanDevice * device, const gchar * code,
+ gsize size, GError ** error)
{
VkShaderModule shader;
VkResult res;
{
VkShaderModule shader;
VkResult res;
.pNext = NULL,
.flags = 0,
.codeSize = size,
.pNext = NULL,
.flags = 0,
.codeSize = size,
- .pCode = (guint32 *) code
+ .pCode = (const guint32 *) code
};
/* *INDENT-ON* */
guint32 first_word;
};
/* *INDENT-ON* */
guint32 first_word;
|| first_word == SPIRV_MAGIC_NUMBER_OE, VK_NULL_HANDLE);
if (first_word == SPIRV_MAGIC_NUMBER_OE) {
/* endianness swap... */
|| first_word == SPIRV_MAGIC_NUMBER_OE, VK_NULL_HANDLE);
if (first_word == SPIRV_MAGIC_NUMBER_OE) {
/* endianness swap... */
- guint32 *old_code = (guint32 *) code;
+ const guint32 *old_code = (const guint32 *) code;
gsize i;
GST_DEBUG ("performaing endianness conversion on spirv shader of size %"
gsize i;
GST_DEBUG ("performaing endianness conversion on spirv shader of size %"
GST_VULKAN_API
GstVulkanHandle * gst_vulkan_create_shader (GstVulkanDevice * device,
GST_VULKAN_API
GstVulkanHandle * gst_vulkan_create_shader (GstVulkanDevice * device,
gsize size,
GError ** error);
gsize size,
GError ** error);