コード例 #1
0
        public PipelineColorBlendStateCreateInfo
        (
            StructureType?sType  = StructureType.PipelineColorBlendStateCreateInfo,
            void *pNext          = null,
            uint?flags           = null,
            Bool32?logicOpEnable = null,
            LogicOp?logicOp      = null,
            uint?attachmentCount = null,
            PipelineColorBlendAttachmentState *pAttachments = null
        ) : this()
        {
            if (sType is not null)
            {
                SType = sType.Value;
            }

            if (pNext is not null)
            {
                PNext = pNext;
            }

            if (flags is not null)
            {
                Flags = flags.Value;
            }

            if (logicOpEnable is not null)
            {
                LogicOpEnable = logicOpEnable.Value;
            }

            if (logicOp is not null)
            {
                LogicOp = logicOp.Value;
            }

            if (attachmentCount is not null)
            {
                AttachmentCount = attachmentCount.Value;
            }

            if (pAttachments is not null)
            {
                PAttachments = pAttachments;
            }
        }
コード例 #2
0
 public PipelineColorBlendStateCreateInfo
 (
     StructureType sType  = StructureType.PipelineColorBlendStateCreateInfo,
     void *pNext          = default,
     uint flags           = default,
     Bool32 logicOpEnable = default,
     LogicOp logicOp      = default,
     uint attachmentCount = default,
     PipelineColorBlendAttachmentState *pAttachments = default
 )
 {
     SType           = sType;
     PNext           = pNext;
     Flags           = flags;
     LogicOpEnable   = logicOpEnable;
     LogicOp         = logicOp;
     AttachmentCount = attachmentCount;
     PAttachments    = pAttachments;
 }