Home
last modified time | relevance | path

Searched refs:depthStencil (Results 1 - 25 of 150) sorted by relevance

123456

/third_party/skia/third_party/externals/dawn/src/tests/unittests/wire/
H A DWireOptionalTests.cpp137 // First case: depthStencil is not null. in TEST_F()
138 pipelineDescriptor.depthStencil = &depthStencilState; in TEST_F()
146 return desc->depthStencil != nullptr && in TEST_F()
147 desc->depthStencil->nextInChain == nullptr && in TEST_F()
148 desc->depthStencil->depthWriteEnabled == false && in TEST_F()
149 desc->depthStencil->depthCompare == WGPUCompareFunction_Always && in TEST_F()
150 desc->depthStencil->stencilBack.compare == WGPUCompareFunction_Always && in TEST_F()
151 desc->depthStencil->stencilBack.failOp == WGPUStencilOperation_Keep && in TEST_F()
152 desc->depthStencil->stencilBack.depthFailOp == WGPUStencilOperation_Keep && in TEST_F()
153 desc->depthStencil in TEST_F()
[all...]
/third_party/skia/third_party/externals/dawn/examples/
H A DCubeReflection.cpp197 wgpu::DepthStencilState* depthStencil = in init() local
199 depthStencil->depthWriteEnabled = true; in init()
200 depthStencil->depthCompare = wgpu::CompareFunction::Less; in init()
215 wgpu::DepthStencilState* depthStencil = in init() local
217 depthStencil->stencilFront.passOp = wgpu::StencilOperation::Replace; in init()
218 depthStencil->stencilBack.passOp = wgpu::StencilOperation::Replace; in init()
219 depthStencil->depthCompare = wgpu::CompareFunction::Less; in init()
234 wgpu::DepthStencilState* depthStencil = in init() local
236 depthStencil->stencilFront.compare = wgpu::CompareFunction::Equal; in init()
237 depthStencil in init()
[all...]
/third_party/vk-gl-cts/modules/gles2/functional/
H A Des2fMultisampledRenderToTextureTests.cpp99 GLuint depthStencil = 0; in iterate() local
100 gl.genRenderbuffers(1, &depthStencil); in iterate()
101 gl.bindRenderbuffer(GL_RENDERBUFFER, depthStencil); in iterate()
103 gl.framebufferRenderbuffer(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_RENDERBUFFER, depthStencil); in iterate()
104 gl.framebufferRenderbuffer(GL_FRAMEBUFFER, GL_STENCIL_ATTACHMENT, GL_RENDERBUFFER, depthStencil); in iterate()
132 gl.deleteRenderbuffers(1, &depthStencil); in iterate()
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libEGL/
H A DSurface.cpp66 ASSERT(!backBuffer && !depthStencil); in initialize()
92 depthStencil = libGLESv2->createDepthStencil(width, height, config->mDepthStencilFormat, config->mSamples); in initialize()
95 if(!depthStencil) in initialize()
108 if(depthStencil) in deleteResources()
110 depthStencil->release(); in deleteResources()
111 depthStencil = nullptr; in deleteResources()
139 if(depthStencil) in getDepthStencil()
141 depthStencil->addRef(); in getDepthStencil()
144 return depthStencil; in getDepthStencil()
305 ASSERT(!frameBuffer && !backBuffer && !depthStencil); in initialize()
[all...]
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libGLESv2/
H A DRenderbuffer.cpp560 DepthStencilbuffer::DepthStencilbuffer(egl::Image *depthStencil) : mDepthStencil(depthStencil) in DepthStencilbuffer() argument
562 if(depthStencil) in DepthStencilbuffer()
564 depthStencil->addRef(); in DepthStencilbuffer()
566 mWidth = depthStencil->getWidth(); in DepthStencilbuffer()
567 mHeight = depthStencil->getHeight(); in DepthStencilbuffer()
568 format = depthStencil->getFormat(); in DepthStencilbuffer()
569 mSamples = depthStencil->getDepth() & ~1; in DepthStencilbuffer()
638 Depthbuffer::Depthbuffer(egl::Image *depthStencil) : DepthStencilbuffer(depthStencil) in Depthbuffer() argument
650 Stencilbuffer(egl::Image *depthStencil) Stencilbuffer() argument
[all...]
H A DRenderbuffer.h262 explicit DepthStencilbuffer(egl::Image *depthStencil);
278 explicit Depthbuffer(egl::Image *depthStencil);
287 explicit Stencilbuffer(egl::Image *depthStencil);
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
H A DVertexOnlyRenderPipelineTests.cpp127 wgpu::DepthStencilState* depthStencil = descriptor.EnableDepthStencil(kDepthStencilFormat); in CreateRenderPipeline() local
129 depthStencil->stencilFront.compare = stencilCompare; in CreateRenderPipeline()
130 depthStencil->stencilBack.compare = stencilCompare; in CreateRenderPipeline()
131 depthStencil->stencilFront.passOp = stencilPassOp; in CreateRenderPipeline()
132 depthStencil->stencilBack.passOp = stencilPassOp; in CreateRenderPipeline()
133 depthStencil->depthWriteEnabled = writeDepth; in CreateRenderPipeline()
134 depthStencil->depthCompare = depthCompare; in CreateRenderPipeline()
H A DDepthBiasTests.cpp102 wgpu::DepthStencilState* depthStencil = renderPipelineDesc.EnableDepthStencil(depthFormat); in RunDepthBiasTest() local
103 depthStencil->depthWriteEnabled = true; in RunDepthBiasTest()
104 depthStencil->depthBias = bias; in RunDepthBiasTest()
105 depthStencil->depthBiasSlopeScale = biasSlopeScale; in RunDepthBiasTest()
106 depthStencil->depthBiasClamp = biasClamp; in RunDepthBiasTest()
109 depthStencil->depthCompare = wgpu::CompareFunction::Greater; in RunDepthBiasTest()
H A DPrimitiveStateTests.cpp86 // depthStencil state, one frontfacing, one backfacing Draw the triangles in order and check the
117 wgpu::DepthStencilState* depthStencil = descriptor.EnableDepthStencil(); in DoTest() local
118 depthStencil->depthWriteEnabled = true; in DoTest()
119 depthStencil->depthCompare = test.depthCompareFunction; in DoTest()
120 depthStencil->format = wgpu::TextureFormat::Depth24PlusStencil8; in DoTest()
H A DClipSpaceTests.cpp46 wgpu::DepthStencilState* depthStencil = pipelineDescriptor.EnableDepthStencil(); in CreatePipelineForTest() local
47 depthStencil->depthCompare = wgpu::CompareFunction::LessEqual; in CreatePipelineForTest()
H A DReadOnlyDepthStencilAttachmentTests.cpp97 wgpu::DepthStencilState* depthStencil = pipelineDescriptor.EnableDepthStencil(format); in CreateRenderPipeline() local
98 depthStencil->depthCompare = wgpu::CompareFunction::LessEqual; in CreateRenderPipeline()
111 wgpu::DepthStencilState* depthStencil = pipelineDescriptor.EnableDepthStencil(format); in CreateRenderPipeline() local
112 depthStencil->stencilFront.compare = wgpu::CompareFunction::LessEqual; in CreateRenderPipeline()
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
H A DPipelineAndPassCompatibilityTests.cpp46 wgpu::DepthStencilState* depthStencil = pipelineDescriptor.EnableDepthStencil(format); in CreatePipeline() local
48 depthStencil->depthWriteEnabled = true; in CreatePipeline()
51 depthStencil->stencilFront.failOp = wgpu::StencilOperation::Replace; in CreatePipeline()
H A DRenderPipelineValidationTests.cpp86 wgpu::DepthStencilState* depthStencil = descriptor.EnableDepthStencil(); in TEST_F() local
87 depthStencil->depthBiasClamp = INFINITY; in TEST_F()
95 wgpu::DepthStencilState* depthStencil = descriptor.EnableDepthStencil(); in TEST_F() local
96 depthStencil->depthBiasClamp = NAN; in TEST_F()
105 wgpu::DepthStencilState* depthStencil = descriptor.EnableDepthStencil(); in TEST_F() local
106 depthStencil->depthBiasSlopeScale = INFINITY; in TEST_F()
114 wgpu::DepthStencilState* depthStencil = descriptor.EnableDepthStencil(); in TEST_F() local
115 depthStencil->depthBiasSlopeScale = NAN; in TEST_F()
127 wgpu::DepthStencilState* depthStencil = in TEST_F() local
129 depthStencil in TEST_F()
140 wgpu::DepthStencilState* depthStencil = TEST_F() local
152 wgpu::DepthStencilState* depthStencil = TEST_F() local
163 wgpu::DepthStencilState* depthStencil = TEST_F() local
[all...]
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
H A DGeometryShaderTest.cpp65 GLuint depthStencil,
910 GLuint depthStencil,
942 glBindTexture(GL_TEXTURE_2D_ARRAY, depthStencil);
951 glFramebufferTextureEXT(GL_FRAMEBUFFER, GL_DEPTH_STENCIL_ATTACHMENT, depthStencil, 0);
1140 GLTexture depthStencil;
1143 setupLayeredFramebuffer(framebuffer, color0, color1, depthStencil, colorTarget,
1173 verifyLayeredFramebufferDepthStencil(depthStencil, kExpectedDepth, kExpectedStencil,
1205 GLTexture depthStencil;
1208 setupLayeredFramebuffer(framebuffer, color0, color1, depthStencil, colorTarget,
1247 verifyLayeredFramebufferDepthStencil(depthStencil, kExpectedDept
[all...]
H A DClearTest.cpp720 GLRenderbuffer depthStencil; in TEST_P() local
721 glBindRenderbuffer(GL_RENDERBUFFER, depthStencil); in TEST_P()
724 depthStencil); in TEST_P()
832 GLRenderbuffer depthStencil; in TEST_P() local
851 glBindRenderbuffer(GL_RENDERBUFFER, depthStencil); in TEST_P()
854 depthStencil); in TEST_P()
1092 GLRenderbuffer depthStencil; in TEST_P() local
1105 glBindRenderbuffer(GL_RENDERBUFFER, depthStencil); in TEST_P()
1108 depthStencil); in TEST_P()
1218 GLRenderbuffer depthStencil; in TEST_P() local
2041 GLRenderbuffer depthStencil; TEST_P() local
2128 GLRenderbuffer depthStencil; TEST_P() local
2221 GLRenderbuffer depthStencil; TEST_P() local
[all...]
/third_party/skia/third_party/externals/dawn/src/dawn_native/
H A DRenderPipeline.cpp509 if (descriptor->depthStencil) { in ValidateRenderPipelineDescriptor()
510 DAWN_TRY_CONTEXT(ValidateDepthStencilState(device, descriptor->depthStencil), in ValidateRenderPipelineDescriptor()
511 "validating depthStencil state."); in ValidateRenderPipelineDescriptor()
522 DAWN_INVALID_IF(descriptor->fragment->targetCount == 0 && !descriptor->depthStencil, in ValidateRenderPipelineDescriptor()
523 "Must have at least one color or depthStencil target."); in ValidateRenderPipelineDescriptor()
554 bool StencilTestEnabled(const DepthStencilState* depthStencil) { in StencilTestEnabled() argument
555 return depthStencil->stencilBack.compare != wgpu::CompareFunction::Always || in StencilTestEnabled()
556 depthStencil->stencilBack.failOp != wgpu::StencilOperation::Keep || in StencilTestEnabled()
557 depthStencil->stencilBack.depthFailOp != wgpu::StencilOperation::Keep || in StencilTestEnabled()
558 depthStencil in StencilTestEnabled()
[all...]
H A DAttachmentState.cpp47 if (descriptor->depthStencil != nullptr) { in AttachmentStateBlueprint()
48 mDepthStencilFormat = descriptor->depthStencil->format; in AttachmentStateBlueprint()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
H A DFramebufferVk.cpp445 contextVk->getClearDepthStencilValue().depthStencil; in clear()
633 clearValue.depthStencil.depth = values[0]; in clearBufferfv()
645 clearValue.depthStencil); in clearBufferfv()
664 clearValue.depthStencil); in clearBufferuiv()
680 clearValue.depthStencil.stencil = static_cast<uint8_t>(values[0]); in clearBufferiv()
692 clearValue.depthStencil); in clearBufferiv()
703 clearValue.depthStencil.depth = depth; in clearBufferfi()
704 clearValue.depthStencil.stencil = static_cast<uint8_t>(stencil); in clearBufferfi()
707 clearValue.depthStencil); in clearBufferfi()
2033 const gl::FramebufferAttachment *depthStencil in updateRenderPassDesc() local
2808 const gl::FramebufferAttachment *depthStencil = mState.getDepthOrStencilAttachment(); getSamples() local
[all...]
/third_party/skia/src/gpu/mtl/
H A DGrMtlDepthStencil.h52 static const Key& GetKey(const GrMtlDepthStencil& depthStencil) { return depthStencil.fKey; } in GetKey() argument
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
H A DvktPipelineClearUtil.cpp100 clearValue.depthStencil.stencil = dsValue.stencil; in defaultClearValue()
101 clearValue.depthStencil.depth = dsValue.depth; in defaultClearValue()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/pipeline/
H A DvktPipelineClearUtil.cpp100 clearValue.depthStencil.stencil = dsValue.stencil; in defaultClearValue()
101 clearValue.depthStencil.depth = dsValue.depth; in defaultClearValue()
/third_party/skia/third_party/externals/angle2/src/libANGLE/
H A DFramebuffer.cpp1580 const auto &depthStencil = glState.getDepthStencilState(); in partialClearNeedsInit() local
1581 if (stencil && (depthStencil.stencilMask != depthStencil.stencilWritemask || in partialClearNeedsInit()
1582 depthStencil.stencilBackMask != depthStencil.stencilBackWritemask)) in partialClearNeedsInit()
1923 const auto &depthStencil = mState.mWebGLDepthStencilAttachment; in commitWebGL1DepthStencilIfConsistent() local
1924 setAttachmentImpl(context, depthStencil.type(), GL_DEPTH_ATTACHMENT, in commitWebGL1DepthStencilIfConsistent()
1925 getImageIndexIfTextureAttachment(depthStencil), in commitWebGL1DepthStencilIfConsistent()
1926 depthStencil.getResource(), numViews, baseViewIndex, isMultiview, in commitWebGL1DepthStencilIfConsistent()
1928 setAttachmentImpl(context, depthStencil in commitWebGL1DepthStencilIfConsistent()
2294 const DepthStencilState &depthStencil = glState.getDepthStencilState(); ensureClearAttachmentsInitialized() local
[all...]
/third_party/vk-gl-cts/modules/internal/
H A DditFrameworkTests.cpp710 TextureLevel depthStencil (TextureFormat(TextureFormat::DS, TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV), numSamples, width, height); in runCase()
721 clearDepth (depthStencil.getAccess(), 0.0f); in runCase()
722 clearStencil (depthStencil.getAccess(), 0); in runCase()
772 const rr::MultisamplePixelBufferAccess dsAccess = rr::MultisamplePixelBufferAccess::fromMultisampleAccess(depthStencil.getAccess()); in runCase()
801 TextureLevel resolvedDepthStencil (depthStencil.getFormat(), width, height); // For debugging in runCase()
804 const ConstPixelBufferAccess dsAccess = depthStencil.getAccess(); in runCase()
814 rr::resolveMultisampleBuffer(resolvedDepthStencil.getAccess(), rr::MultisampleConstPixelBufferAccess::fromMultisampleAccess(depthStencil.getAccess())); in runCase()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/renderpass/
H A DvktRenderPassUnusedClearAttachmentTests.cpp438 m_initialColorDepth.depthStencil.depth = 1.0f; in UnusedClearAttachmentTestInstance()
439 m_initialColorDepth.depthStencil.stencil = 0u; in UnusedClearAttachmentTestInstance()
447 m_clearColorDepth.depthStencil.depth = 0.0f; in UnusedClearAttachmentTestInstance()
448 m_clearColorDepth.depthStencil.stencil = 255u; in UnusedClearAttachmentTestInstance()
684 vk.cmdClearDepthStencilImage(*cmdBuffer, *m_depthImage, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, &m_initialColorDepth.depthStencil, 1, &clearRange); in UnusedClearAttachmentTestInstance()
1147 const float refDepth = (m_testParams.depthStencilUsed ? m_clearColorDepth.depthStencil.depth : m_initialColorDepth.depthStencil.depth); in iterate()
1176 const deUint32 refStencil = (m_testParams.depthStencilUsed ? m_clearColorDepth.depthStencil.stencil : m_initialColorDepth.depthStencil.stencil); in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/renderpass/
H A DvktRenderPassUnusedClearAttachmentTests.cpp439 m_initialColorDepth.depthStencil.depth = 1.0f; in UnusedClearAttachmentTestInstance()
440 m_initialColorDepth.depthStencil.stencil = 0u; in UnusedClearAttachmentTestInstance()
448 m_clearColorDepth.depthStencil.depth = 0.0f; in UnusedClearAttachmentTestInstance()
449 m_clearColorDepth.depthStencil.stencil = 255u; in UnusedClearAttachmentTestInstance()
685 vk.cmdClearDepthStencilImage(*cmdBuffer, *m_depthImage, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, &m_initialColorDepth.depthStencil, 1, &clearRange); in UnusedClearAttachmentTestInstance()
1148 const float refDepth = (m_testParams.depthStencilUsed ? m_clearColorDepth.depthStencil.depth : m_initialColorDepth.depthStencil.depth); in iterate()
1177 const deUint32 refStencil = (m_testParams.depthStencilUsed ? m_clearColorDepth.depthStencil.stencil : m_initialColorDepth.depthStencil.stencil); in iterate()

Completed in 25 milliseconds

123456