optimized "copy color4f" at CommandBuffer::SetClearColor function
This commit is contained in:
parent
057e18640c
commit
d54f88c4c9
2
CMCore
2
CMCore
@ -1 +1 @@
|
||||
Subproject commit 1aa976a30aaf9108a8e9ecb1ea1e68da24cac4d4
|
||||
Subproject commit afec00dc90aecfacd84450d65b09dacbe3828e5e
|
@ -64,12 +64,7 @@ public:
|
||||
{
|
||||
if(index>=cv_count)return;
|
||||
|
||||
VkClearValue *cv=clear_values+index;
|
||||
|
||||
cv->color.float32[0]=cc.r;
|
||||
cv->color.float32[1]=cc.g;
|
||||
cv->color.float32[2]=cc.b;
|
||||
cv->color.float32[3]=cc.a;
|
||||
hgl_cpy(clear_values[index].color.float32,cc.rgba,4);
|
||||
}
|
||||
|
||||
void SetClearDepthStencil(uint32_t index,float d=1.0f,float s=0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user