Cleanup: Use StringRef instead of StringRefNull
This commit is contained in:
@@ -16,8 +16,7 @@
|
||||
|
||||
namespace blender::draw {
|
||||
|
||||
GPUVertFormat init_format_for_attribute(const eCustomDataType data_type,
|
||||
const StringRefNull vbo_name)
|
||||
GPUVertFormat init_format_for_attribute(const eCustomDataType data_type, const StringRef vbo_name)
|
||||
{
|
||||
GPUVertFormat format{};
|
||||
bke::attribute_math::convert_to_static_type(data_type, [&](auto dummy) {
|
||||
@@ -25,7 +24,7 @@ GPUVertFormat init_format_for_attribute(const eCustomDataType data_type,
|
||||
using Converter = AttributeConverter<T>;
|
||||
if constexpr (!std::is_void_v<typename Converter::VBOType>) {
|
||||
GPU_vertformat_attr_add(&format,
|
||||
vbo_name.c_str(),
|
||||
vbo_name,
|
||||
Converter::gpu_component_type,
|
||||
Converter::gpu_component_len,
|
||||
Converter::gpu_fetch_mode);
|
||||
|
||||
@@ -141,7 +141,7 @@ template<> struct AttributeConverter<math::Quaternion> {
|
||||
}
|
||||
};
|
||||
|
||||
GPUVertFormat init_format_for_attribute(eCustomDataType data_type, StringRefNull vbo_name);
|
||||
GPUVertFormat init_format_for_attribute(eCustomDataType data_type, StringRef vbo_name);
|
||||
|
||||
void vertbuf_data_extract_direct(GSpan attribute, gpu::VertBuf &vbo);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user