<commit_before><commit_msg>wgsl: Stub tests for the atomicLoad builtin. (#1415)<commit_after>export const description = `
Returns the atomically loaded the value pointed to by atomic_ptr. It does not modify the object.
`;

import { makeTestGroup } from '../../../../../../common/framework/test_group.js';
import { GPUTest } from '../../../../../gpu_test.js';

export const g = makeTestGroup(GPUTest);

g.test('stage')
  .specURL('https://www.w3.org/TR/WGSL/#atomic-load')
  .desc(
    `
Atomic built-in functions must not be used in a vertex shader stage.
`
  )
  .params(u => u.combine('stage', ['fragment', 'vertex', 'compute'] as const))
  .unimplemented();

g.test('load')
  .specURL('https://www.w3.org/TR/WGSL/#atomic-load')
  .desc(
    `
SC is storage or workgroup
T is i32 or u32

fn atomicLoad(atomic_ptr: ptr<SC, atomic<T>, read_write>) -> T

`
  )
  .params(u =>
    u.combine('SC', ['storage', 'uniform'] as const).combine('T', ['i32', 'u32'] as const)
  )
  .unimplemented();
{'fraction_non_alphanumeric': 0.19312436804853386, 'fraction_numerical': 0.014155712841253791, 'mean_word_length': 3.479638009049774, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2498405', 'n_tokens_mistral': 357, 'n_tokens_neox': 348, 'n_words': 91}