Lines Matching refs:pipelineDescriptor
401 auto pipelineDescriptor = [[MTLRenderPipelineDescriptor alloc] init];
408 pipelineDescriptor.label = @(description.c_str());
453 pipelineDescriptor.vertexDescriptor = vertexDescriptor;
476 pipelineDescriptor.colorAttachments[0] = mtlColorAttachment;
479 pipelineDescriptor.stencilAttachmentPixelFormat = (MTLPixelFormat) reader->readInt();
481 return pipelineDescriptor;
503 auto pipelineDescriptor = [[MTLRenderPipelineDescriptor alloc] init];
508 pipelineDescriptor.label = @(description.c_str());
514 pipelineDescriptor.vertexDescriptor = create_vertex_descriptor(programInfo.geomProc(),
522 pipelineDescriptor.colorAttachments[0] = create_color_attachment(pixelFormat,
525 pipelineDescriptor.sampleCount = programInfo.numSamples();
527 pipelineDescriptor.stencilAttachmentPixelFormat = mtlCaps->getStencilPixelFormat(desc);
529 writer->writeInt(pipelineDescriptor.stencilAttachmentPixelFormat);
531 SkASSERT(pipelineDescriptor.vertexDescriptor);
532 SkASSERT(pipelineDescriptor.colorAttachments[0]);
537 pipelineDescriptor.vertexFunction =
539 pipelineDescriptor.fragmentFunction =
541 SkASSERT(pipelineDescriptor.vertexFunction);
542 SkASSERT(pipelineDescriptor.fragmentFunction);
661 pipelineDescriptor.vertexFunction =
663 pipelineDescriptor.fragmentFunction =
667 if (pipelineDescriptor.vertexFunction == nil) {
671 if (pipelineDescriptor.fragmentFunction == nil) {
675 SkASSERT(pipelineDescriptor.vertexFunction);
676 SkASSERT(pipelineDescriptor.fragmentFunction);
684 pipelineDescriptor.binaryArchives = archiveArray;
688 result = [archive addRenderPipelineFunctionsWithDescriptor: pipelineDescriptor
704 fGpu->device(), pipelineDescriptor, &error);
707 [fGpu->device() newRenderPipelineStateWithDescriptor: pipelineDescriptor
726 pipelineDescriptor.colorAttachments[0].pixelFormat,
761 auto pipelineDescriptor = read_pipeline_data(&reader);
807 pipelineDescriptor.vertexFunction =
809 pipelineDescriptor.fragmentFunction =
817 pipelineDescriptor.binaryArchives = archiveArray;
822 result = [archive addRenderPipelineFunctionsWithDescriptor: pipelineDescriptor
844 [gpu->device() newRenderPipelineStateWithDescriptor: pipelineDescriptor