mirror of https://github.com/AxioDL/boo.git
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:
parent
b0c246abc7
commit
bda59575b7
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue