Misc: Pass string_view by value
This commit is contained in:
@ -69,7 +69,7 @@ public:
|
||||
void InvalidateRenderTarget(GPUTexture* t) override;
|
||||
|
||||
std::unique_ptr<GPUShader> CreateShaderFromBinary(GPUShaderStage stage, std::span<const u8> data) override;
|
||||
std::unique_ptr<GPUShader> CreateShaderFromSource(GPUShaderStage stage, const std::string_view& source,
|
||||
std::unique_ptr<GPUShader> CreateShaderFromSource(GPUShaderStage stage, std::string_view source,
|
||||
const char* entry_point, DynamicHeapArray<u8>* binary) override;
|
||||
std::unique_ptr<GPUPipeline> CreatePipeline(const GPUPipeline::GraphicsConfig& config) override;
|
||||
|
||||
@ -111,7 +111,7 @@ public:
|
||||
static AdapterAndModeList StaticGetAdapterAndModeList();
|
||||
|
||||
protected:
|
||||
bool CreateDevice(const std::string_view& adapter, bool threaded_presentation,
|
||||
bool CreateDevice(std::string_view adapter, bool threaded_presentation,
|
||||
std::optional<bool> exclusive_fullscreen_control, FeatureMask disabled_features,
|
||||
Error* error) override;
|
||||
void DestroyDevice() override;
|
||||
@ -204,4 +204,4 @@ private:
|
||||
float m_accumulated_gpu_time = 0.0f;
|
||||
};
|
||||
|
||||
void SetD3DDebugObjectName(ID3D11DeviceChild* obj, const std::string_view& name);
|
||||
void SetD3DDebugObjectName(ID3D11DeviceChild* obj, std::string_view name);
|
||||
|
||||
Reference in New Issue
Block a user