mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 13:38:00 +00:00
test: Move unicode e2e test to tint dir
This got left out of the large reshuffle of dbc13af2
Bug: tint:1418
Change-Id: I0e55e19cdb8e3931ab87a99bce0e16b0cf5d5bff
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/81320
Auto-Submit: Ben Clayton <bclayton@google.com>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
committed by
Tint LUCI CQ
parent
dbc13af287
commit
aa58a6934c
11
test/tint/unicode/comments.wgsl
Normal file
11
test/tint/unicode/comments.wgsl
Normal file
@@ -0,0 +1,11 @@
|
||||
// Øⓑꚫ쁹Ǵ𐌒岾🥍ⴵ㍨又ᮗ
|
||||
|
||||
/*
|
||||
/* 👋🌎 */
|
||||
नमस्ते दुनिया
|
||||
*/
|
||||
|
||||
@stage(fragment)
|
||||
fn /* こんにちは世界 */ main( /* 你好世界 */ ) {
|
||||
// 안녕하세요 세계
|
||||
}
|
||||
10
test/tint/unicode/comments.wgsl.expected.glsl
Normal file
10
test/tint/unicode/comments.wgsl.expected.glsl
Normal file
@@ -0,0 +1,10 @@
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
void tint_symbol() {
|
||||
}
|
||||
|
||||
void main() {
|
||||
tint_symbol();
|
||||
return;
|
||||
}
|
||||
3
test/tint/unicode/comments.wgsl.expected.hlsl
Normal file
3
test/tint/unicode/comments.wgsl.expected.hlsl
Normal file
@@ -0,0 +1,3 @@
|
||||
void main() {
|
||||
return;
|
||||
}
|
||||
7
test/tint/unicode/comments.wgsl.expected.msl
Normal file
7
test/tint/unicode/comments.wgsl.expected.msl
Normal file
@@ -0,0 +1,7 @@
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
fragment void tint_symbol() {
|
||||
return;
|
||||
}
|
||||
|
||||
16
test/tint/unicode/comments.wgsl.expected.spvasm
Normal file
16
test/tint/unicode/comments.wgsl.expected.spvasm
Normal file
@@ -0,0 +1,16 @@
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 5
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
OpEntryPoint Fragment %main "main"
|
||||
OpExecutionMode %main OriginUpperLeft
|
||||
OpName %main "main"
|
||||
%void = OpTypeVoid
|
||||
%1 = OpTypeFunction %void
|
||||
%main = OpFunction %void None %1
|
||||
%4 = OpLabel
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
3
test/tint/unicode/comments.wgsl.expected.wgsl
Normal file
3
test/tint/unicode/comments.wgsl.expected.wgsl
Normal file
@@ -0,0 +1,3 @@
|
||||
@stage(fragment)
|
||||
fn main() {
|
||||
}
|
||||
12
test/tint/unicode/identifiers.wgsl
Normal file
12
test/tint/unicode/identifiers.wgsl
Normal file
@@ -0,0 +1,12 @@
|
||||
type 𝓉𝓎𝓅ℯ_𝒶 = i32;
|
||||
type 𝐭𝐲𝐩𝐞_𝐛 = f32;
|
||||
|
||||
fn 𝓯𝓾𝓷𝓬𝓽𝓲𝓸𝓷(ᵖᵃʳᵃᵐ : 𝓉𝓎𝓅ℯ_𝒶) -> 𝐭𝐲𝐩𝐞_𝐛 {
|
||||
return 𝐭𝐲𝐩𝐞_𝐛(ᵖᵃʳᵃᵐ);
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn 𝕖𝕟𝕥𝕣𝕪𝕡𝕠𝕚𝕟𝕥() {
|
||||
var 𝙫𝙖𝙧𝙞𝙖𝙗𝙡𝙚 : 𝓉𝓎𝓅ℯ_𝒶;
|
||||
let 𝖗𝖊𝖘𝖚𝖑𝖙 = 𝓯𝓾𝓷𝓬𝓽𝓲𝓸𝓷(𝙫𝙖𝙧𝙞𝙖𝙗𝙡𝙚);
|
||||
}
|
||||
16
test/tint/unicode/identifiers.wgsl.expected.glsl
Normal file
16
test/tint/unicode/identifiers.wgsl.expected.glsl
Normal file
@@ -0,0 +1,16 @@
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
float tint_symbol_2(int tint_symbol_3) {
|
||||
return float(tint_symbol_3);
|
||||
}
|
||||
|
||||
void tint_symbol_4() {
|
||||
int tint_symbol_5 = 0;
|
||||
float tint_symbol_6 = tint_symbol_2(tint_symbol_5);
|
||||
}
|
||||
|
||||
void main() {
|
||||
tint_symbol_4();
|
||||
return;
|
||||
}
|
||||
9
test/tint/unicode/identifiers.wgsl.expected.hlsl
Normal file
9
test/tint/unicode/identifiers.wgsl.expected.hlsl
Normal file
@@ -0,0 +1,9 @@
|
||||
float tint_symbol_2(int tint_symbol_3) {
|
||||
return float(tint_symbol_3);
|
||||
}
|
||||
|
||||
void tint_symbol_4() {
|
||||
int tint_symbol_5 = 0;
|
||||
const float tint_symbol_6 = tint_symbol_2(tint_symbol_5);
|
||||
return;
|
||||
}
|
||||
13
test/tint/unicode/identifiers.wgsl.expected.msl
Normal file
13
test/tint/unicode/identifiers.wgsl.expected.msl
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
float tint_symbol_2(int tint_symbol_3) {
|
||||
return float(tint_symbol_3);
|
||||
}
|
||||
|
||||
fragment void tint_symbol_4() {
|
||||
int tint_symbol_5 = 0;
|
||||
float const tint_symbol_6 = tint_symbol_2(tint_symbol_5);
|
||||
return;
|
||||
}
|
||||
|
||||
33
test/tint/unicode/identifiers.wgsl.expected.spvasm
Normal file
33
test/tint/unicode/identifiers.wgsl.expected.spvasm
Normal file
@@ -0,0 +1,33 @@
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 17
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
OpEntryPoint Fragment %________________________________________ "𝕖𝕟𝕥𝕣𝕪𝕡𝕠𝕚𝕟𝕥"
|
||||
OpExecutionMode %________________________________________ OriginUpperLeft
|
||||
OpName %________________________________ "𝓯𝓾𝓷𝓬𝓽𝓲𝓸𝓷"
|
||||
OpName %______________ "ᵖᵃʳᵃᵐ"
|
||||
OpName %________________________________________ "𝕖𝕟𝕥𝕣𝕪𝕡𝕠𝕚𝕟𝕥"
|
||||
OpName %_________________________________0 "𝙫𝙖𝙧𝙞𝙖𝙗𝙡𝙚"
|
||||
%float = OpTypeFloat 32
|
||||
%int = OpTypeInt 32 1
|
||||
%1 = OpTypeFunction %float %int
|
||||
%void = OpTypeVoid
|
||||
%8 = OpTypeFunction %void
|
||||
%_ptr_Function_int = OpTypePointer Function %int
|
||||
%14 = OpConstantNull %int
|
||||
%________________________________ = OpFunction %float None %1
|
||||
%______________ = OpFunctionParameter %int
|
||||
%6 = OpLabel
|
||||
%7 = OpConvertSToF %float %______________
|
||||
OpReturnValue %7
|
||||
OpFunctionEnd
|
||||
%________________________________________ = OpFunction %void None %8
|
||||
%11 = OpLabel
|
||||
%_________________________________0 = OpVariable %_ptr_Function_int Function %14
|
||||
%16 = OpLoad %int %_________________________________0
|
||||
%15 = OpFunctionCall %float %________________________________ %16
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
13
test/tint/unicode/identifiers.wgsl.expected.wgsl
Normal file
13
test/tint/unicode/identifiers.wgsl.expected.wgsl
Normal file
@@ -0,0 +1,13 @@
|
||||
type 𝓉𝓎𝓅ℯ_𝒶 = i32;
|
||||
|
||||
type 𝐭𝐲𝐩𝐞_𝐛 = f32;
|
||||
|
||||
fn 𝓯𝓾𝓷𝓬𝓽𝓲𝓸𝓷(ᵖᵃʳᵃᵐ : 𝓉𝓎𝓅ℯ_𝒶) -> 𝐭𝐲𝐩𝐞_𝐛 {
|
||||
return 𝐭𝐲𝐩𝐞_𝐛(ᵖᵃʳᵃᵐ);
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn 𝕖𝕟𝕥𝕣𝕪𝕡𝕠𝕚𝕟𝕥() {
|
||||
var 𝙫𝙖𝙧𝙞𝙖𝙗𝙡𝙚 : 𝓉𝓎𝓅ℯ_𝒶;
|
||||
let 𝖗𝖊𝖘𝖚𝖑𝖙 = 𝓯𝓾𝓷𝓬𝓽𝓲𝓸𝓷(𝙫𝙖𝙧𝙞𝙖𝙗𝙡𝙚);
|
||||
}
|
||||
Reference in New Issue
Block a user