#!amber # Copyright 2024 Advanced Micro Devices, Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. SHADER compute shader SPIRV-BIN FILE shader_spirv_bin.spv BUFFER buffer DATA_TYPE uint32 DATA 0 END PIPELINE compute the_pipeline ATTACH shader BIND BUFFER buffer AS storage DESCRIPTOR_SET 0 BINDING 0 END RUN the_pipeline 1 1 1 EXPECT buffer IDX 0 EQ 1