IGraphicsDataFactory: std::move vertex and fragment tokens in newShaderPipeline

Forwards the passed in tokens to the implementing function without an
unnecessary atomic reference count increment and decrement.
This commit is contained in:
Lioncash 2019-08-24 20:21:25 -04:00
parent b0c246abc7
commit bda59575b7
1 changed files with 2 additions and 1 deletions

View File

@ -251,7 +251,8 @@ struct IGraphicsDataFactory {
const VertexFormatInfo& vtxFmt, const VertexFormatInfo& vtxFmt,
const AdditionalPipelineInfo& additionalInfo, const AdditionalPipelineInfo& additionalInfo,
bool asynchronous = true) { bool asynchronous = true) {
return newShaderPipeline(vertex, fragment, {}, {}, {}, vtxFmt, additionalInfo, asynchronous); return newShaderPipeline(std::move(vertex), std::move(fragment), {}, {}, {}, vtxFmt, additionalInfo,
asynchronous);
} }
virtual ObjToken<IShaderDataBinding> newShaderDataBinding( virtual ObjToken<IShaderDataBinding> newShaderDataBinding(