Lines Matching refs:attachments
579 bool GraphicsState::depthWriteActive(const Attachments &attachments) const in depthWriteActive()
581 if(!depthBufferActive(attachments)) return false; in depthWriteActive()
586 bool GraphicsState::depthBufferActive(const Attachments &attachments) const in depthBufferActive()
588 return attachments.depthBuffer && depthBufferEnable; in depthBufferActive()
591 bool GraphicsState::stencilActive(const Attachments &attachments) const in stencilActive()
593 return attachments.stencilBuffer && stencilEnable; in stencilActive()
654 BlendState GraphicsState::getBlendState(int index, const Attachments &attachments, bool fragmentCon… in getBlendState() argument
659 activeBlendState.alphaBlendEnable = alphaBlendActive(index, attachments, fragmentContainsKill); in getBlendState()
662 activeBlendState.blendOperation = blendOperation(index, attachments); in getBlendState()
665 activeBlendState.blendOperationAlpha = blendOperationAlpha(index, attachments); in getBlendState()
669 bool GraphicsState::alphaBlendActive(int index, const Attachments &attachments, bool fragmentContai… in alphaBlendActive() argument
678 if(!(colorWriteActive(attachments) || fragmentContainsKill)) in alphaBlendActive()
683 bool colorBlend = !(blendOperation(index, attachments) == VK_BLEND_OP_SRC_EXT && in alphaBlendActive()
685 bool alphaBlend = !(blendOperationAlpha(index, attachments) == VK_BLEND_OP_SRC_EXT && in alphaBlendActive()
737 VkBlendOp GraphicsState::blendOperation(int index, const Attachments &attachments) const in blendOperation()
780 if(sourceBlendFactor(index) == VK_BLEND_FACTOR_ZERO && attachments.isColorClamped(index)) in blendOperation()
820 if(destBlendFactor(index) == VK_BLEND_FACTOR_ZERO && attachments.isColorClamped(index)) in blendOperation()
831 if(destBlendFactor(index) == VK_BLEND_FACTOR_ZERO && attachments.isColorClamped(index)) in blendOperation()
893 VkBlendOp GraphicsState::blendOperationAlpha(int index, const Attachments &attachments) const in blendOperationAlpha()
934 if(sourceBlendFactorAlpha(index) == VK_BLEND_FACTOR_ZERO && attachments.isColorClamped(index)) in blendOperationAlpha()
974 if(destBlendFactorAlpha(index) == VK_BLEND_FACTOR_ZERO && attachments.isColorClamped(index)) in blendOperationAlpha()
985 if(destBlendFactorAlpha(index) == VK_BLEND_FACTOR_ZERO && attachments.isColorClamped(index)) in blendOperationAlpha()
1005 bool GraphicsState::colorWriteActive(const Attachments &attachments) const in colorWriteActive()
1009 if(colorWriteActive(i, attachments)) in colorWriteActive()
1018 int GraphicsState::colorWriteActive(int index, const Attachments &attachments) const in colorWriteActive()
1022 …if(!attachments.renderTarget[index] || attachments.renderTarget[index]->getFormat() == VK_FORMAT_U… in colorWriteActive()
1027 …if(blendOperation(index, attachments) == VK_BLEND_OP_DST_EXT && destBlendFactor(index) == VK_BLEND… in colorWriteActive()
1028 …(blendOperationAlpha(index, attachments) == VK_BLEND_OP_DST_EXT && destBlendFactorAlpha(index) == … in colorWriteActive()