fix: drop 32-bit integer vector VertexFormats (#12570) 2e4ed32ffa * drop 32-bit integer vector VertexFormats (sint32, sint32x2..4, uint32x2..4) * format Co-authored-by: Luigi Rosso <luigi-rosso@users.noreply.github.com>
diff --git a/.rive_head b/.rive_head index 05e8df1..d083940 100644 --- a/.rive_head +++ b/.rive_head
@@ -1 +1 @@ -717b403dd948097f9b8d1ea31197935d8f3a27d0 +2e4ed32ffaeace41f7c1704011a4886693b37ca1
diff --git a/renderer/include/rive/renderer/ore/ore_types.hpp b/renderer/include/rive/renderer/ore/ore_types.hpp index 77fe27d..2008de9 100644 --- a/renderer/include/rive/renderer/ore/ore_types.hpp +++ b/renderer/include/rive/renderer/ore/ore_types.hpp
@@ -198,6 +198,9 @@ uint32, }; +// 32-bit integer vector vertex formats (sint32, sint32x2..4, uint32x2..4) are +// intentionally omitted: scripts don't expose them, and Unreal RHI only +// supports scalar VET_UInt. Reintroduce per-backend if a real use case appears. enum class VertexFormat : uint8_t { float1, @@ -217,13 +220,6 @@ float16x2, float16x4, uint32, - uint32x2, - uint32x3, - uint32x4, - sint32, - sint32x2, - sint32x3, - sint32x4, }; enum class VertexStepMode : uint8_t
diff --git a/renderer/src/ore/d3d11/ore_context_d3d11.cpp b/renderer/src/ore/d3d11/ore_context_d3d11.cpp index 0e6e0fc..5a7e9e2 100644 --- a/renderer/src/ore/d3d11/ore_context_d3d11.cpp +++ b/renderer/src/ore/d3d11/ore_context_d3d11.cpp
@@ -412,20 +412,6 @@ return DXGI_FORMAT_R16G16B16A16_FLOAT; case VertexFormat::uint32: return DXGI_FORMAT_R32_UINT; - case VertexFormat::uint32x2: - return DXGI_FORMAT_R32G32_UINT; - case VertexFormat::uint32x3: - return DXGI_FORMAT_R32G32B32_UINT; - case VertexFormat::uint32x4: - return DXGI_FORMAT_R32G32B32A32_UINT; - case VertexFormat::sint32: - return DXGI_FORMAT_R32_SINT; - case VertexFormat::sint32x2: - return DXGI_FORMAT_R32G32_SINT; - case VertexFormat::sint32x3: - return DXGI_FORMAT_R32G32B32_SINT; - case VertexFormat::sint32x4: - return DXGI_FORMAT_R32G32B32A32_SINT; } RIVE_UNREACHABLE(); }
diff --git a/renderer/src/ore/d3d12/ore_context_d3d12.cpp b/renderer/src/ore/d3d12/ore_context_d3d12.cpp index bc524c6..912b32b 100644 --- a/renderer/src/ore/d3d12/ore_context_d3d12.cpp +++ b/renderer/src/ore/d3d12/ore_context_d3d12.cpp
@@ -384,20 +384,6 @@ return DXGI_FORMAT_R16G16B16A16_FLOAT; case VertexFormat::uint32: return DXGI_FORMAT_R32_UINT; - case VertexFormat::uint32x2: - return DXGI_FORMAT_R32G32_UINT; - case VertexFormat::uint32x3: - return DXGI_FORMAT_R32G32B32_UINT; - case VertexFormat::uint32x4: - return DXGI_FORMAT_R32G32B32A32_UINT; - case VertexFormat::sint32: - return DXGI_FORMAT_R32_SINT; - case VertexFormat::sint32x2: - return DXGI_FORMAT_R32G32_SINT; - case VertexFormat::sint32x3: - return DXGI_FORMAT_R32G32B32_SINT; - case VertexFormat::sint32x4: - return DXGI_FORMAT_R32G32B32A32_SINT; } RIVE_UNREACHABLE(); }
diff --git a/renderer/src/ore/gl/ore_render_pass_gl.cpp b/renderer/src/ore/gl/ore_render_pass_gl.cpp index d6e825a..02cf8ee 100644 --- a/renderer/src/ore/gl/ore_render_pass_gl.cpp +++ b/renderer/src/ore/gl/ore_render_pass_gl.cpp
@@ -180,20 +180,6 @@ return {GL_HALF_FLOAT, 4, GL_FALSE}; case VertexFormat::uint32: return {GL_UNSIGNED_INT, 1, GL_FALSE}; - case VertexFormat::uint32x2: - return {GL_UNSIGNED_INT, 2, GL_FALSE}; - case VertexFormat::uint32x3: - return {GL_UNSIGNED_INT, 3, GL_FALSE}; - case VertexFormat::uint32x4: - return {GL_UNSIGNED_INT, 4, GL_FALSE}; - case VertexFormat::sint32: - return {GL_INT, 1, GL_FALSE}; - case VertexFormat::sint32x2: - return {GL_INT, 2, GL_FALSE}; - case VertexFormat::sint32x3: - return {GL_INT, 3, GL_FALSE}; - case VertexFormat::sint32x4: - return {GL_INT, 4, GL_FALSE}; } RIVE_UNREACHABLE(); }
diff --git a/renderer/src/ore/metal/ore_context_metal.mm b/renderer/src/ore/metal/ore_context_metal.mm index e629565..6e89f93 100644 --- a/renderer/src/ore/metal/ore_context_metal.mm +++ b/renderer/src/ore/metal/ore_context_metal.mm
@@ -337,20 +337,6 @@ return MTLVertexFormatHalf4; case VertexFormat::uint32: return MTLVertexFormatUInt; - case VertexFormat::uint32x2: - return MTLVertexFormatUInt2; - case VertexFormat::uint32x3: - return MTLVertexFormatUInt3; - case VertexFormat::uint32x4: - return MTLVertexFormatUInt4; - case VertexFormat::sint32: - return MTLVertexFormatInt; - case VertexFormat::sint32x2: - return MTLVertexFormatInt2; - case VertexFormat::sint32x3: - return MTLVertexFormatInt3; - case VertexFormat::sint32x4: - return MTLVertexFormatInt4; } RIVE_UNREACHABLE(); }
diff --git a/renderer/src/ore/vulkan/ore_pipeline_vulkan.cpp b/renderer/src/ore/vulkan/ore_pipeline_vulkan.cpp index 2dfb5ef..d9a9e7e 100644 --- a/renderer/src/ore/vulkan/ore_pipeline_vulkan.cpp +++ b/renderer/src/ore/vulkan/ore_pipeline_vulkan.cpp
@@ -63,20 +63,6 @@ return VK_FORMAT_R16G16B16A16_SFLOAT; case VertexFormat::uint32: return VK_FORMAT_R32_UINT; - case VertexFormat::uint32x2: - return VK_FORMAT_R32G32_UINT; - case VertexFormat::uint32x3: - return VK_FORMAT_R32G32B32_UINT; - case VertexFormat::uint32x4: - return VK_FORMAT_R32G32B32A32_UINT; - case VertexFormat::sint32: - return VK_FORMAT_R32_SINT; - case VertexFormat::sint32x2: - return VK_FORMAT_R32G32_SINT; - case VertexFormat::sint32x3: - return VK_FORMAT_R32G32B32_SINT; - case VertexFormat::sint32x4: - return VK_FORMAT_R32G32B32A32_SINT; } RIVE_UNREACHABLE(); }
diff --git a/renderer/src/ore/wgpu/ore_context_wgpu.cpp b/renderer/src/ore/wgpu/ore_context_wgpu.cpp index 0e74e9c..9ce9aa8 100644 --- a/renderer/src/ore/wgpu/ore_context_wgpu.cpp +++ b/renderer/src/ore/wgpu/ore_context_wgpu.cpp
@@ -384,20 +384,6 @@ return wgpu::VertexFormat::Float16x4; case VertexFormat::uint32: return wgpu::VertexFormat::Uint32; - case VertexFormat::uint32x2: - return wgpu::VertexFormat::Uint32x2; - case VertexFormat::uint32x3: - return wgpu::VertexFormat::Uint32x3; - case VertexFormat::uint32x4: - return wgpu::VertexFormat::Uint32x4; - case VertexFormat::sint32: - return wgpu::VertexFormat::Sint32; - case VertexFormat::sint32x2: - return wgpu::VertexFormat::Sint32x2; - case VertexFormat::sint32x3: - return wgpu::VertexFormat::Sint32x3; - case VertexFormat::sint32x4: - return wgpu::VertexFormat::Sint32x4; } RIVE_UNREACHABLE(); }