src/tests/end2end/DeprecatedAPITests.cpp
TEST_P(DeprecationTests, BGLEntryMultisampledDeprecated) {
    wgpu::BindGroupLayoutEntry entry{};
    entry.visibility = wgpu::ShaderStage::Fragment;
    entry.type = wgpu::BindingType::SampledTexture;
    entry.multisampled = true;
    entry.binding = 0;

    wgpu::BindGroupLayoutDescriptor desc;
    desc.entryCount = 1;
    desc.entries = &entry;
    EXPECT_DEPRECATION_WARNING(device.CreateBindGroupLayout(&desc));
}
// Test that using BGLEntry.multisampled = true emits a deprecation warning.
Test that using BGLEntry.multisampled = true emits a deprecation warning.
Test that using BGLEntry . multisampled = true emits a deprecation warning .
TEST_P(DeprecationTests, BGLEntryMultisampledDeprecated) {
    wgpu::BindGroupLayoutEntry entry{};
    entry.visibility = wgpu::ShaderStage::Fragment;
    entry.type = wgpu::BindingType::SampledTexture;
    entry.multisampled = true;
    entry.binding = 0;
    wgpu::BindGroupLayoutDescriptor desc;
    desc.entryCount = 1;
    desc.entries = &entry;
    EXPECT_DEPRECATION_WARNING(device.CreateBindGroupLayout(&desc));
}
TEST_P ( DeprecationTests , BGLEntryMultisampledDeprecated ) { wgpu :: BindGroupLayoutEntry entry { } ; entry . visibility = wgpu :: ShaderStage :: Fragment ; entry . type = wgpu :: BindingType :: SampledTexture ; entry . multisampled = true ; entry . binding = 0 ; wgpu :: BindGroupLayoutDescriptor desc ; desc . entryCount = 1 ; desc . entries = & entry ; EXPECT_DEPRECATION_WARNING ( device . CreateBindGroupLayout ( & desc ) ) ; }
Test that using BGLEntry.multisampled = true emits a deprecation warning.
Test that using BGLEntry . multisampled = true emits a deprecation warning .