set ColorAttachments at GPUDevice::CreatePipeline
This commit is contained in:
parent
744c3a1963
commit
b4c385c40c
@ -1 +1 @@
|
||||
Subproject commit 741edebad8108eeee4b256bef0dae3ba0a9fdbcb
|
||||
Subproject commit 4d15db4b5c42a0fb8fc9d78703ab1e98e90d142d
|
@ -53,7 +53,7 @@ private:
|
||||
return(false);
|
||||
|
||||
// pipeline=db->CreatePipeline(material_instance,sc_render_target,OS_TEXT("res/pipeline/solid2d"));
|
||||
pipeline=CreatePipeline(material_instance,OS_TEXT("res/pipeline/alpha2d"),Prim::LineStrip); //等同上一行,为Framework重载,默认使用swapchain的render target
|
||||
pipeline=CreatePipeline(material_instance,InlinePipeline::Alpha2D,Prim::LineStrip); //等同上一行,为Framework重载,默认使用swapchain的render target
|
||||
|
||||
if(!pipeline)
|
||||
return(false);
|
||||
|
@ -23,6 +23,8 @@ Pipeline *CreatePipeline(VkDevice device,VkPipelineCache pipeline_cache,Pipeline
|
||||
|
||||
data->InitViewportState(rt->GetExtent());
|
||||
|
||||
data->SetColorAttachments(rt->GetColorCount());
|
||||
|
||||
data->pipeline_info.layout = material->GetPipelineLayout();
|
||||
|
||||
{
|
||||
|
@ -77,8 +77,6 @@ Pipeline *RenderResource::CreatePipeline(Material *mtl,RenderTarget *rt,const In
|
||||
|
||||
pd->Set(prim,prim_restart);
|
||||
|
||||
pd->SetColorAttachments(rt->GetColorCount());
|
||||
|
||||
Pipeline *p=device->CreatePipeline(pd,mtl,rt);
|
||||
|
||||
if(p)
|
||||
|
Loading…
x
Reference in New Issue
Block a user